2020-08-31 02:32:09 +03:00
|
|
|
package controllers
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
2021-10-25 03:12:56 +03:00
|
|
|
|
|
|
|
"github.com/owncast/owncast/router/middleware"
|
2020-08-31 02:32:09 +03:00
|
|
|
)
|
|
|
|
|
2021-08-01 02:21:30 +03:00
|
|
|
// GetChatEmbedreadwrite gets the embed for readwrite chat.
|
|
|
|
func GetChatEmbedreadwrite(w http.ResponseWriter, r *http.Request) {
|
2021-10-25 03:12:56 +03:00
|
|
|
// Set our global HTTP headers
|
|
|
|
middleware.SetHeaders(w)
|
|
|
|
|
2021-10-05 23:29:18 +03:00
|
|
|
http.ServeFile(w, r, "webroot/index-standalone-chat-readwrite.html")
|
2021-08-01 02:21:30 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// GetChatEmbedreadonly gets the embed for readonly chat.
|
|
|
|
func GetChatEmbedreadonly(w http.ResponseWriter, r *http.Request) {
|
2021-10-25 03:12:56 +03:00
|
|
|
// Set our global HTTP headers
|
|
|
|
middleware.SetHeaders(w)
|
|
|
|
|
2021-10-05 23:29:18 +03:00
|
|
|
http.ServeFile(w, r, "webroot/index-standalone-chat-readonly.html")
|
2020-08-31 02:32:09 +03:00
|
|
|
}
|
|
|
|
|
2020-11-13 02:14:59 +03:00
|
|
|
// GetVideoEmbed gets the embed for video.
|
2020-08-31 02:32:09 +03:00
|
|
|
func GetVideoEmbed(w http.ResponseWriter, r *http.Request) {
|
2021-10-25 03:12:56 +03:00
|
|
|
// Set our global HTTP headers
|
|
|
|
middleware.SetHeaders(w)
|
|
|
|
|
2021-10-05 23:29:18 +03:00
|
|
|
http.ServeFile(w, r, "webroot/index-video-only.html")
|
2020-08-31 02:32:09 +03:00
|
|
|
}
|