fixed static route for invites

This commit is contained in:
Harvey Tindall 2020-08-02 17:16:43 +01:00
parent e576616530
commit 699489e435
1 changed files with 1 additions and 1 deletions

View File

@ -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)