Add invitation management

This commit is contained in:
grokdesigns 2025-04-08 18:18:57 -07:00
parent 40040af957
commit d7f50bac6a
No known key found for this signature in database
GPG key ID: 1084CD111FEE75DD
10 changed files with 574 additions and 9 deletions

View file

@ -143,6 +143,27 @@ authenticated.get(
domain.listDomains
);
authenticated.get(
"/org/:orgId/invitations",
verifyOrgAccess,
verifyUserHasAction(ActionsEnum.listInvitations),
user.listInvitations
);
authenticated.delete(
"/org/:orgId/invitations/:inviteId",
verifyOrgAccess,
verifyUserHasAction(ActionsEnum.removeInvitation),
user.removeInvitation
);
authenticated.get(
"/org/:orgId/users",
verifyOrgAccess,
verifyUserHasAction(ActionsEnum.listUsers),
user.listUsers
);
authenticated.post(
"/org/:orgId/create-invite",
verifyOrgAccess,
@ -567,7 +588,4 @@ authRouter.post(
resource.authWithAccessToken
);
authRouter.post(
"/access-token",
resource.authWithAccessToken
);
authRouter.post("/access-token", resource.authWithAccessToken);