fix route

This commit is contained in:
Alex Holliday committed 2025-07-21 13:46:06 -07:00
1 parent 3e75972b02
commit f2037bf5fe
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -977,7 +977,7 @@ class NetworkService {
});
}
return this.axiosInstance.get(`/monitors/summary/team?${params.toString()}`, {
return this.axiosInstance.get(`/monitors/team/summary?${params.toString()}`, {
headers: {
"Content-Type": "application/json",
},
+1 -1
View File
@@ -20,7 +20,7 @@ class MonitorRoutes {
// Team routes
this.router.get("/team", this.monitorController.getMonitorsByTeamId);
this.router.get("/team/with-checks", this.monitorController.getMonitorsWithChecksByTeamId);
this.router.get("/summary/team", this.monitorController.getMonitorsAndSummaryByTeamId); // TODO should be /team/summary
this.router.get("/team/summary", this.monitorController.getMonitorsAndSummaryByTeamId); // TODO should be /team/summary
// Uptime routes
this.router.get("/uptime", this.monitorController.getAllMonitorsWithUptimeStats);