correct route ordering, add proptype

This commit is contained in:
Alex Holliday
2025-02-10 14:23:15 -08:00
parent 9faec245d8
commit 738e4a4787
2 changed files with 2 additions and 1 deletions

View File

@@ -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,

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(
"/",