Addition of export.

This commit is contained in:
Owaise Imdad committed 2025-06-17 00:11:33 +05:30
1 parent 36d8e8c0cf
commit e9e509ab04
6 files changed
+102 -11

No files matched your search

+5
View File
@@ -17,6 +17,11 @@ class MonitorRoutes {
initRoutes() {
this.router.get("/", this.monitorController.getAllMonitors);
this.router.get("/uptime", this.monitorController.getAllMonitorsWithUptimeStats);
this.router.get(
"/export",
isAllowed(["admin", "superadmin"]),
this.monitorController.exportMonitorsToCSV
);
this.router.get("/stats/:monitorId", this.monitorController.getMonitorStatsById);
this.router.get(
"/hardware/details/:monitorId",