Fix: One Route

This commit is contained in:
Br0wnHammer committed 2026-02-21 00:10:39 +05:30
1 parent c27bb0e7f1
commit f9653888b1
3 files changed
+5 -8

No files matched your search

-3
View File
@@ -18,10 +18,7 @@ class StatusPageRoutes {
this.router.post("/", upload.single("logo"), verifyJWT, this.statusPageController.createStatusPage);
this.router.put("/:id", upload.single("logo"), verifyJWT, this.statusPageController.updateStatusPage);
// Route 1: published pages — no JWT
this.router.get("/:url", verifyStatusPageAccess, this.statusPageController.getStatusPageByUrl);
// Route 2: unpublished pages — JWT required (reached via next("route"))
this.router.get("/:url", verifyJWT, this.statusPageController.getStatusPageByUrl);
this.router.delete("/:id", verifyJWT, this.statusPageController.deleteStatusPage);
}