mirror of
https://github.com/owncast/owncast.git
synced 2025-11-02 20:23:29 +08:00
Add standalone chat with ability to send messages (#1270)
* 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
This commit is contained in:
@ -36,8 +36,14 @@ func Start() error {
|
||||
// web config api
|
||||
http.HandleFunc("/api/config", controllers.GetWebConfig)
|
||||
|
||||
// chat embed
|
||||
http.HandleFunc("/embed/chat", controllers.GetChatEmbed)
|
||||
// pre v0.0.8 chat embed
|
||||
http.HandleFunc("/embed/chat", controllers.GetChatEmbedreadonly)
|
||||
|
||||
// readonly chat embed
|
||||
http.HandleFunc("/embed/chat/readonly", controllers.GetChatEmbedreadonly)
|
||||
|
||||
// readwrite chat embed
|
||||
http.HandleFunc("/embed/chat/readwrite", controllers.GetChatEmbedreadwrite)
|
||||
|
||||
// video embed
|
||||
http.HandleFunc("/embed/video", controllers.GetVideoEmbed)
|
||||
|
||||
Reference in New Issue
Block a user