From a879051454256c9c1c0100ccc21c1ea1d8570054 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Mon, 14 Jul 2025 09:38:00 -0700 Subject: [PATCH] reorder rotues to correctly match --- server/routes/checkRoute.js | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/server/routes/checkRoute.js b/server/routes/checkRoute.js index 4ac1e3730..f215cbe37 100755 --- a/server/routes/checkRoute.js +++ b/server/routes/checkRoute.js @@ -20,17 +20,18 @@ class CheckRoutes { isAllowed(["admin", "superadmin"]), this.checkController.deleteChecksByTeamId ); - - this.router.get("/:monitorId", this.checkController.getChecksByMonitor); - this.router.put( "/check/:checkId", verifyTeamAccess(Check, "checkId"), this.checkController.ackCheck ); + this.router.put( + "/team/ttl", + isAllowed(["admin", "superadmin"]), + this.checkController.updateChecksTTL + ); - this.router.put("/:path/:monitorId?", this.checkController.ackAllChecks); - + this.router.get("/:monitorId", this.checkController.getChecksByMonitor); this.router.post( "/:monitorId", verifyOwnership(Monitor, "monitorId"), @@ -41,12 +42,7 @@ class CheckRoutes { verifyOwnership(Monitor, "monitorId"), this.checkController.deleteChecks ); - - this.router.put( - "/team/ttl", - isAllowed(["admin", "superadmin"]), - this.checkController.updateChecksTTL - ); + this.router.put("/:path/:monitorId?", this.checkController.ackAllChecks); } getRouter() {