Merge branch 'master' into feat/speedcheck-controller

This commit is contained in:
Alexander Holliday authored and GitHub committed 2024-07-16 15:09:40 -07:00
commit e86b4205e6
9 files changed
+98 -222

No files matched your search

+7 -2
View File
@@ -14,12 +14,14 @@ const {
* @param {string} monitorId - The ID of the monitor
* @middleware verifyOwnership - Ensures the user owns the monitor
*/
router.post(
"/:monitorId",
verifyOwnership(Monitor, "monitorId"),
createPageSpeedCheck
);
/**
* @route GET /:monitorId
* @description Get all PageSpeedChecks for a monitor
@@ -27,6 +29,7 @@ router.post(
* @param {string} monitorId - The ID of the monitor
* @middleware verifyOwnership - Ensures the user owns the monitor
*/
router.get(
"/:monitorId",
verifyOwnership(Monitor, "monitorId"),
@@ -40,10 +43,12 @@ router.get(
* @param {string} monitorId - The ID of the monitor
* @middleware verifyOwnership - Ensures the user owns the monitor
*/
router.post(
"/delete/:monitorId",
router.delete(
"/:monitorId",
verifyOwnership(Monitor, "monitorId"),
deletePageSpeedCheck
);
module.exports = router;