This commit is contained in:
Alex Holliday committed 2026-02-21 03:43:11 +00:00
1 parent 673f47983a
commit f94afb63c6
5 files changed
+53 -22

No files matched your search

+1 -4
View File
@@ -45,10 +45,7 @@ class MonitorRoutes {
// Other static routes
this.router.post("/demo", isAllowed(["admin", "superadmin"]), this.monitorController.addDemoMonitors);
this.router.get("/export/json", isAllowed(["admin", "superadmin"]), this.monitorController.exportMonitorsToJSON);
// TODO this needs to be modified to accept JSON, change to /import
this.router.post("/bulk", isAllowed(["admin", "superadmin"]), upload.single("csvFile"), this.monitorController.createBulkMonitors);
// END TODO
this.router.post("/import/json", isAllowed(["admin", "superadmin"]), this.monitorController.importMonitorsFromJSON);
this.router.post("/test-email", isAllowed(["admin", "superadmin"]), this.monitorController.sendTestEmail);
this.router.get("/games", this.monitorController.getAllGames);