correct route ordering, add proptype
This commit is contained in:
1 parent
9faec245d8
commit
738e4a4787
2 files changed
+2
-1
No files matched your search
@@ -67,6 +67,7 @@ const Controls = ({ isDeleteOpen, setIsDeleteOpen, isDeleting, url, type }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Controls.propTypes = {
|
Controls.propTypes = {
|
||||||
|
type: PropTypes.string,
|
||||||
isDeleting: PropTypes.bool,
|
isDeleting: PropTypes.bool,
|
||||||
url: PropTypes.string,
|
url: PropTypes.string,
|
||||||
isDeleteOpen: PropTypes.bool.isRequired,
|
isDeleteOpen: PropTypes.bool.isRequired,
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ 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.get("/team/:teamId", this.statusPageController.getStatusPagesByTeamId);
|
this.router.get("/team/:teamId", this.statusPageController.getStatusPagesByTeamId);
|
||||||
|
this.router.get("/:url", this.statusPageController.getStatusPageByUrl);
|
||||||
|
|
||||||
this.router.post(
|
this.router.post(
|
||||||
"/",
|
"/",
|
||||||
|
|||||||
Reference in new issue
Block a user