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