diff --git a/Server/controllers/statusPageController.js b/Server/controllers/statusPageController.js index 50f2e1ee4..de2e786a6 100644 --- a/Server/controllers/statusPageController.js +++ b/Server/controllers/statusPageController.js @@ -71,6 +71,13 @@ class StatusPageController { }; getStatusPageByUrl = async (req, res, next) => { + try { + await getStatusPageParamValidation.validateAsync(req.params); + } catch (error) { + next(handleValidationError(error, SERVICE_NAME)); + return; + } + try { const statusPage = await this.db.getStatusPageByUrl(req.params.url); return res.success({