mirror of
https://github.com/owncast/owncast.git
synced 2024-11-23 13:24:33 +03:00
958c78641e
- Removes relative imports from embedded player, chat. - Replaces `Redirect` calls with `ServeFile` in `embed.go`.
20 lines
606 B
Go
20 lines
606 B
Go
package controllers
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
// GetChatEmbedreadwrite gets the embed for readwrite chat.
|
|
func GetChatEmbedreadwrite(w http.ResponseWriter, r *http.Request) {
|
|
http.ServeFile(w, r, "webroot/index-standalone-chat-readwrite.html")
|
|
}
|
|
|
|
// GetChatEmbedreadonly gets the embed for readonly chat.
|
|
func GetChatEmbedreadonly(w http.ResponseWriter, r *http.Request) {
|
|
http.ServeFile(w, r, "webroot/index-standalone-chat-readonly.html")
|
|
}
|
|
|
|
// GetVideoEmbed gets the embed for video.
|
|
func GetVideoEmbed(w http.ResponseWriter, r *http.Request) {
|
|
http.ServeFile(w, r, "webroot/index-video-only.html")
|
|
}
|