@ -135,7 +135,7 @@ func (app *appContext) loadRoutes(router *gin.Engine) {
router . GET ( p + "/lang/:page/:file" , app . ServeLang )
router . GET ( p + "/token/login" , app . getTokenLogin )
router . GET ( p + "/token/refresh" , app . getTokenRefresh )
router . POST ( p + "/ newUser ", app . NewUserFromInvite )
router . POST ( p + "/ user/invite ", app . NewUserFromInvite )
router . Use ( static . Serve ( p + "/invite/" , app . webFS ) )
router . GET ( p + "/invite/:invCode" , app . InviteProxy )
if app . config . Section ( "captcha" ) . Key ( "enabled" ) . MustBool ( false ) {
@ -182,7 +182,7 @@ func (app *appContext) loadRoutes(router *gin.Engine) {
router . POST ( p + "/logout" , app . Logout )
api . DELETE ( p + "/users" , app . DeleteUsers )
api . GET ( p + "/users" , app . GetUsers )
api . POST ( p + "/user s ", app . NewUserFromAdmin )
api . POST ( p + "/user ", app . NewUserFromAdmin )
api . POST ( p + "/users/extend" , app . ExtendExpiry )
api . DELETE ( p + "/users/:id/expiry" , app . RemoveExpiry )
api . POST ( p + "/users/enable" , app . EnableDisableUsers )
@ -191,6 +191,7 @@ func (app *appContext) loadRoutes(router *gin.Engine) {
api . DELETE ( p + "/invites" , app . DeleteInvite )
api . POST ( p + "/invites/profile" , app . SetProfile )
api . GET ( p + "/profiles" , app . GetProfiles )
api . GET ( p + "/profiles/names" , app . GetProfileNames )
api . POST ( p + "/profiles/default" , app . SetDefaultProfile )
api . POST ( p + "/profiles" , app . CreateProfile )
api . DELETE ( p + "/profiles" , app . DeleteProfile )