Fix HTML scaffolding of admin pages rendering without auth. Closes #2789
This commit is contained in:
@@ -32,7 +32,7 @@ func Start() error {
|
||||
http.HandleFunc("/", controllers.IndexHandler)
|
||||
|
||||
// The admin web app.
|
||||
http.HandleFunc("/admin", middleware.RequireAdminAuth(controllers.IndexHandler))
|
||||
http.HandleFunc("/admin/", middleware.RequireAdminAuth(controllers.IndexHandler))
|
||||
|
||||
// Images
|
||||
http.HandleFunc("/thumbnail.jpg", controllers.GetThumbnail)
|
||||
|
||||
Reference in New Issue
Block a user