Fix HTML scaffolding of admin pages rendering without auth. Closes #2789

This commit is contained in:
Gabe Kangas
2023-03-10 12:16:28 -08:00
parent 3c533a39f0
commit f7d84bc15b
2 changed files with 52 additions and 1 deletions

View File

@@ -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)