invite: add /count/used route

counts the number of active invites which have been used.
This commit is contained in:
Harvey Tindall
2025-05-27 18:30:21 +01:00
parent 9409370984
commit 80fd7c9842
2 changed files with 25 additions and 0 deletions

View File

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