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