Refactor incident endpoints to use aggregation

This commit is contained in:
Alex Holliday committed 2025-01-21 15:30:51 -08:00
1 parent c4d223aee5
commit 4ed995692d
6 files changed
+93 -96

No files matched your search

+2 -2
View File
@@ -11,7 +11,7 @@ class CheckRoutes {
}
initRoutes() {
this.router.get("/:monitorId", this.checkController.getChecks);
this.router.get("/:monitorId", this.checkController.getChecksByMonitor);
this.router.post(
"/:monitorId",
verifyOwnership(Monitor, "monitorId"),
@@ -23,7 +23,7 @@ class CheckRoutes {
this.checkController.deleteChecks
);
this.router.get("/team/:teamId", this.checkController.getTeamChecks);
this.router.get("/team/:teamId", this.checkController.getChecksByTeam);
this.router.delete(
"/team/:teamId",