mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-23 01:20:11 +00:00
fixed static route for invites
This commit is contained in:
parent
e576616530
commit
699489e435
2
main.go
2
main.go
@ -293,8 +293,8 @@ func main() {
|
|||||||
router.GET("/", ctx.AdminPage)
|
router.GET("/", ctx.AdminPage)
|
||||||
router.GET("/getToken", ctx.GetToken)
|
router.GET("/getToken", ctx.GetToken)
|
||||||
router.POST("/newUser", ctx.NewUser)
|
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.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 := router.Group("/", ctx.webAuth())
|
||||||
api.POST("/generateInvite", ctx.GenerateInvite)
|
api.POST("/generateInvite", ctx.GenerateInvite)
|
||||||
api.GET("/getInvites", ctx.GetInvites)
|
api.GET("/getInvites", ctx.GetInvites)
|
||||||
|
Loading…
Reference in New Issue
Block a user