correct route ordering, add proptype

This commit is contained in:
Alex Holliday committed 2025-02-10 14:23:15 -08:00
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 = {
type: PropTypes.string,
isDeleting: PropTypes.bool,
url: PropTypes.string,
isDeleteOpen: PropTypes.bool.isRequired,
+1 -1
View File
@@ -12,8 +12,8 @@ class StatusPageRoutes {
initRoutes() {
this.router.get("/", this.statusPageController.getStatusPage);
this.router.get("/:url", this.statusPageController.getStatusPageByUrl);
this.router.get("/team/:teamId", this.statusPageController.getStatusPagesByTeamId);
this.router.get("/:url", this.statusPageController.getStatusPageByUrl);
this.router.post(
"/",