From 4b4c935e02cee98d06b8824fc3751dfc88603e52 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sun, 13 Mar 2022 18:35:26 +0100 Subject: [bugfix] Fix bug where admin panel could not be accessed at `/admin` (#427) * clarify comments * tidy up static serving + add /admin redirect --- internal/router/router.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/router') diff --git a/internal/router/router.go b/internal/router/router.go index 4b00f0eb0..57e0d36b2 100644 --- a/internal/router/router.go +++ b/internal/router/router.go @@ -47,7 +47,7 @@ type Router interface { AttachMiddleware(handler gin.HandlerFunc) // Attach 404 NoRoute handler AttachNoRouteHandler(handler gin.HandlerFunc) - // Add Gin StaticFile handler + // Add Gin StaticFS handler AttachStaticFS(relativePath string, fs http.FileSystem) // Start the router Start() @@ -62,7 +62,7 @@ type router struct { certManager *autocert.Manager } -// Add Gin StaticFile handler +// Add Gin StaticFS handler func (r *router) AttachStaticFS(relativePath string, fs http.FileSystem) { r.engine.StaticFS(relativePath, fs) } -- cgit v1.2.3