mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-01 06:00:24 -05:00
20 lines
429 B
JavaScript
20 lines
429 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;
|