Fix: One Route
This commit is contained in:
1 parent
c27bb0e7f1
commit
f9653888b1
3 files changed
+5
-8
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user