Fix swagger definition for RevokeInvite method

Swagger mistakenly defines /org/invites/{code}/revoke endpoint method as DELETE, but in the code and it actually uses PATCH method: 33ff6dbb9e/pkg/api/api.go (L338)
This commit is contained in:
Orkhan Alikhanov 2025-09-24 13:36:55 +04:00 committed by GitHub
parent 053920b8b7
commit 6fb7eb3882
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ func (hs *HTTPServer) inviteExistingUserToOrg(c *contextmodel.ReqContext, user *
})
}
// swagger:route DELETE /org/invites/{invitation_code}/revoke org invites revokeInvite
// swagger:route PATCH /org/invites/{invitation_code}/revoke org invites revokeInvite
//
// Revoke invite.
//