From 4f02c44e396eb7a942ffa544cf1b343c57ccd683 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Wed, 28 May 2025 12:38:36 +0100 Subject: [PATCH] router: fix /accounts route in normal usage mistake from previous commits, the route wasn't being assigned at all. --- router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router.go b/router.go index d50c441..d69fb79 100644 --- a/router.go +++ b/router.go @@ -139,7 +139,7 @@ func (app *appContext) loadRoutes(router *gin.Engine) { } // Handle the obvious collision of /accounts - if p != "" || PAGES.Admin != "" { + if len(routePrefixes) == 1 || p != "" || PAGES.Admin != "" { router.GET(p+PAGES.Admin+"/accounts", app.AdminPage) } router.GET(p+PAGES.Admin+"/settings", app.AdminPage)