From e7f4de220275b357c7c36217475adae68a2ab3d8 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Wed, 14 May 2025 22:55:31 +0100 Subject: [PATCH] router: fix webFS on form subpath --- router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router.go b/router.go index e88f49f..9ab3530 100644 --- a/router.go +++ b/router.go @@ -136,7 +136,7 @@ func (app *appContext) loadRoutes(router *gin.Engine) { router.GET(p+"/token/login", app.getTokenLogin) router.GET(p+"/token/refresh", app.getTokenRefresh) router.POST(p+"/user/invite", app.NewUserFromInvite) - router.Use(static.Serve(p+PAGES.Form, app.webFS)) + router.Use(static.Serve(p+PAGES.Form+"/", app.webFS)) router.GET(p+PAGES.Form+"/:invCode", app.InviteProxy) if app.config.Section("captcha").Key("enabled").MustBool(false) { router.GET(p+"/captcha/gen/:invCode", app.GenCaptcha)