add route for getting status page by url, update delete route to delete by url
This commit is contained in:
1 parent
0cf26f82b7
commit
b829bd4549
1 file changed
+2
-1
@@ -12,6 +12,7 @@ class StatusPageRoutes {
|
|||||||
|
|
||||||
initRoutes() {
|
initRoutes() {
|
||||||
this.router.get("/", this.statusPageController.getStatusPage);
|
this.router.get("/", this.statusPageController.getStatusPage);
|
||||||
|
this.router.get("/:url", this.statusPageController.getStatusPageByUrl);
|
||||||
this.router.post(
|
this.router.post(
|
||||||
"/",
|
"/",
|
||||||
upload.single("logo"),
|
upload.single("logo"),
|
||||||
@@ -24,7 +25,7 @@ class StatusPageRoutes {
|
|||||||
verifyJWT,
|
verifyJWT,
|
||||||
this.statusPageController.updateStatusPage
|
this.statusPageController.updateStatusPage
|
||||||
);
|
);
|
||||||
this.router.delete("/", verifyJWT, this.statusPageController.deleteStatusPage);
|
this.router.delete("/:url(*)", verifyJWT, this.statusPageController.deleteStatusPage);
|
||||||
}
|
}
|
||||||
|
|
||||||
getRouter() {
|
getRouter() {
|
||||||
|
|||||||
Reference in new issue
Block a user