From 699489e435a2bf1665f3293f18b3e8fc5838b4df Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Sun, 2 Aug 2020 17:16:43 +0100 Subject: [PATCH] fixed static route for invites --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index a29ae3d..2571b2f 100644 --- a/main.go +++ b/main.go @@ -293,8 +293,8 @@ func main() { router.GET("/", ctx.AdminPage) router.GET("/getToken", ctx.GetToken) router.POST("/newUser", ctx.NewUser) - router.GET("/invite/:invCode", ctx.InviteProxy) router.Use(static.Serve("/invite/", static.LocalFile(filepath.Join(ctx.local_path, "static"), false))) + router.GET("/invite/:invCode", ctx.InviteProxy) api := router.Group("/", ctx.webAuth()) api.POST("/generateInvite", ctx.GenerateInvite) api.GET("/getInvites", ctx.GetInvites)