Add tests for inviteController
This commit is contained in:
1 parent
e052adfd91
commit
4ce08e05df
4 files changed
+209
-17
No files matched your search
@@ -3,7 +3,7 @@ const { verifyJWT } = require("../middleware/verifyJWT");
|
||||
const { isAllowed } = require("../middleware/isAllowed");
|
||||
|
||||
const {
|
||||
inviteController,
|
||||
issueInvitation,
|
||||
inviteVerifyController,
|
||||
} = require("../controllers/inviteController");
|
||||
|
||||
@@ -11,8 +11,8 @@ router.post(
|
||||
"/",
|
||||
isAllowed(["admin", "superadmin"]),
|
||||
verifyJWT,
|
||||
inviteController
|
||||
issueInvitation
|
||||
);
|
||||
router.post("/verify", inviteVerifyController);
|
||||
router.post("/verify", issueInvitation);
|
||||
|
||||
module.exports = router;
|
||||
Reference in new issue
Block a user