mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-03-18 21:50:33 +01:00
router: fix /accounts route in normal usage
mistake from previous commits, the route wasn't being assigned at all.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user