Merge branch 'develop' into chore/addPrettierConfig
This commit is contained in:
102 files changed
+8998
-1380
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;
|
||||
@@ -3,21 +3,20 @@ const maintenanceWindowController = require("../controllers/maintenanceWindowCon
|
||||
const { verifyOwnership } = require("../middleware/verifyOwnership");
|
||||
const Monitor = require("../db/models/Monitor");
|
||||
|
||||
router.post("/", maintenanceWindowController.createMaintenanceWindows);
|
||||
|
||||
router.get(
|
||||
"/monitor/:monitorId",
|
||||
verifyOwnership(Monitor, "monitorId"),
|
||||
maintenanceWindowController.getMaintenanceWindowsByMonitorId
|
||||
);
|
||||
|
||||
router.post(
|
||||
"/monitor/:monitorId",
|
||||
verifyOwnership(Monitor, "monitorId"),
|
||||
maintenanceWindowController.createMaintenanceWindow
|
||||
);
|
||||
router.get("/team/", maintenanceWindowController.getMaintenanceWindowsByTeamId);
|
||||
|
||||
router.get(
|
||||
"/user/:userId",
|
||||
maintenanceWindowController.getMaintenanceWindowsByUserId
|
||||
);
|
||||
router.get("/:id", maintenanceWindowController.getMaintenanceWindowById);
|
||||
|
||||
router.put("/:id", maintenanceWindowController.editMaintenanceWindow);
|
||||
|
||||
router.delete("/:id", maintenanceWindowController.deleteMaintenanceWindow);
|
||||
|
||||
module.exports = router;
|
||||
Reference in new issue
Block a user