mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-01-18 16:47:42 +01:00
invite: add /count/used route
counts the number of active invites which have been used.
This commit is contained in:
@@ -201,6 +201,7 @@ func (app *appContext) loadRoutes(router *gin.Engine) {
|
||||
api.POST(p+"/invites", app.GenerateInvite)
|
||||
api.GET(p+"/invites", app.GetInvites)
|
||||
api.GET(p+"/invites/count", app.GetInviteCount)
|
||||
api.GET(p+"/invites/count/used", app.GetInviteUsedCount)
|
||||
api.DELETE(p+"/invites", app.DeleteInvite)
|
||||
api.POST(p+"/invites/profile", app.SetProfile)
|
||||
api.GET(p+"/profiles", app.GetProfiles)
|
||||
|
||||
Reference in New Issue
Block a user