add invite service

This commit is contained in:
Alex Holliday committed 2025-07-23 14:58:44 -07:00
1 parent 3239f555a1
commit aea79fec2e
5 files changed
+115 -61

No files matched your search

+2 -2
View File
@@ -10,8 +10,8 @@ class InviteRoutes {
}
initRoutes() {
this.router.post("/send", this.inviteController.sendInviteEmail);
this.router.post("/verify", this.inviteController.inviteVerifyController);
this.router.post("/send", verifyJWT, isAllowed(["admin", "superadmin"]), this.inviteController.sendInviteEmail);
this.router.post("/verify", this.inviteController.verifyInviteToken);
this.router.post("/", verifyJWT, isAllowed(["admin", "superadmin"]), this.inviteController.getInviteToken);
}