Defined a new validation schema in the joi.
This commit is contained in:
1 parent
4e659072f2
commit
7d179042c2
1 file changed
+8
@@ -145,6 +145,13 @@ const deleteChecksParamValidation = joi.object({
|
||||
monitorId: joi.string().required(),
|
||||
});
|
||||
|
||||
//****************************************
|
||||
// PageSpeedCheckValidation
|
||||
//****************************************
|
||||
const pageSpeedCheckValidation = joi.object({
|
||||
monitorId: joi.string().required(),
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
loginValidation,
|
||||
registerValidation,
|
||||
@@ -169,4 +176,5 @@ module.exports = {
|
||||
getChecksParamValidation,
|
||||
deleteChecksParamValidation,
|
||||
deleteUserParamValidation,
|
||||
pageSpeedCheckValidation,
|
||||
};
|
||||
Reference in new issue
Block a user