Use static servers for serving embedded web assets
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user