From d9c583f972b68e11ee86af8ebaf640f60591557c Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Mon, 30 Dec 2024 14:56:38 -0800 Subject: [PATCH] Add a route for uptime details --- Server/routes/monitorRoute.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Server/routes/monitorRoute.js b/Server/routes/monitorRoute.js index c3257372b..39ef105c2 100644 --- a/Server/routes/monitorRoute.js +++ b/Server/routes/monitorRoute.js @@ -13,6 +13,13 @@ class MonitorRoutes { this.router.get("/", this.monitorController.getAllMonitors); this.router.get("/uptime", this.monitorController.getAllMonitorsWithUptimeStats); this.router.get("/stats/:monitorId", this.monitorController.getMonitorStatsById); + + // New details routes + this.router.get( + "/uptime/details/:monitorId", + this.monitorController.getUptimeDetailsById + ); + this.router.get("/certificate/:monitorId", (req, res, next) => { this.monitorController.getMonitorCertificate( req,