Add pause routes and controller, implement functionality
This commit is contained in:
1 parent
1ab423cd76
commit
17174ebe14
7 files changed
+73
-13
No files matched your search
@@ -31,4 +31,11 @@ router.delete(
|
||||
isAllowed(["superadmin"]),
|
||||
monitorController.deleteAllMonitors
|
||||
);
|
||||
|
||||
router.post(
|
||||
"/pause/:monitorId",
|
||||
isAllowed(["admin", "superadmin"]),
|
||||
monitorController.pauseMonitor
|
||||
);
|
||||
|
||||
module.exports = router;
|
||||
Reference in new issue
Block a user