add route for getting status page by url, update delete route to delete by url

This commit is contained in:
Alex Holliday
2025-02-07 14:43:14 -08:00
parent 0cf26f82b7
commit b829bd4549

View File

@@ -12,6 +12,7 @@ class StatusPageRoutes {
initRoutes() {
this.router.get("/", this.statusPageController.getStatusPage);
this.router.get("/:url", this.statusPageController.getStatusPageByUrl);
this.router.post(
"/",
upload.single("logo"),
@@ -24,7 +25,7 @@ class StatusPageRoutes {
verifyJWT,
this.statusPageController.updateStatusPage
);
this.router.delete("/", verifyJWT, this.statusPageController.deleteStatusPage);
this.router.delete("/:url(*)", verifyJWT, this.statusPageController.deleteStatusPage);
}
getRouter() {