Use static servers for serving embedded web assets

This commit is contained in:
Gabe Kangas
2022-06-20 22:12:44 -07:00
parent 18a184eeb7
commit 9c477e16a2
4 changed files with 10 additions and 90 deletions

View File

@@ -25,12 +25,12 @@ import (
// Start starts the router for the http, ws, and rtmp.
func Start() error {
// The admin web app.
http.HandleFunc("/admin", middleware.RequireAdminAuth(controllers.IndexHandler))
// The primary web app.
http.HandleFunc("/", controllers.IndexHandler)
// The admin web app.
http.HandleFunc("/admin", middleware.RequireAdminAuth(controllers.IndexHandler))
// Return a single emoji image.
http.HandleFunc("/img/emoji/", middleware.RequireAdminAuth(controllers.GetCustomEmojiImage))