reorder routes for correctness

This commit is contained in:
Alex Holliday committed 2025-07-21 09:55:49 -07:00
1 parent dae0d6cc42
commit 0c04db3299
17 files changed
+123 -127

No files matched your search

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