mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-21 09:09:43 -06:00
15 lines
417 B
JavaScript
15 lines
417 B
JavaScript
import { Router } from "express";
|
|
import { verifyJWT } from "../middleware/verifyJWT.js";
|
|
import { isAllowed } from "../middleware/isAllowed.js";
|
|
import {
|
|
issueInvitation,
|
|
inviteVerifyController,
|
|
} from "../controllers/inviteController.js";
|
|
|
|
const router = Router();
|
|
|
|
router.post("/", isAllowed(["admin", "superadmin"]), verifyJWT, issueInvitation);
|
|
router.post("/verify", issueInvitation);
|
|
|
|
export default router;
|