mirror of
https://github.com/owncast/owncast.git
synced 2024-12-18 07:12:33 +03:00
7e6f53c846
* properly pass the messagesOnly to chat * use actual username if embed is not messageonly * mv embed chat to chat-overlay * add new embed chat page * fix router * secure random number for non-secure application! * add chat enable/disable functionality * add username form add customStyles * mv overlay css * add style for embed chat style cleanup * rm username form from chat overlay * refactoring * css cleanup css adjust * minor cleanup * mark the embed chats as readonly and readwrite * replace 301 redirects with 307 * add redirect for the cached address * set insatnce name in chat
20 lines
672 B
Go
20 lines
672 B
Go
package controllers
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
// GetChatEmbedreadwrite gets the embed for readwrite chat.
|
|
func GetChatEmbedreadwrite(w http.ResponseWriter, r *http.Request) {
|
|
http.Redirect(w, r, "/index-standalone-chat-readwrite.html", http.StatusTemporaryRedirect)
|
|
}
|
|
|
|
// GetChatEmbedreadonly gets the embed for readonly chat.
|
|
func GetChatEmbedreadonly(w http.ResponseWriter, r *http.Request) {
|
|
http.Redirect(w, r, "/index-standalone-chat-readonly.html", http.StatusTemporaryRedirect)
|
|
}
|
|
|
|
// GetVideoEmbed gets the embed for video.
|
|
func GetVideoEmbed(w http.ResponseWriter, r *http.Request) {
|
|
http.Redirect(w, r, "/index-video-only.html", http.StatusTemporaryRedirect)
|
|
}
|