Added some basic validation
This commit is contained in:
1 parent
0ef7e014ed
commit
f3e222ac3a
2 files changed
+109
-33
No files matched your search
@@ -132,7 +132,14 @@ const editPasswordValidation = joi.object({
|
||||
}),
|
||||
});
|
||||
|
||||
const createMonitorValidation = joi.object({
|
||||
url: joi.string().trim().messages({ "string.empty": "*Url is required." }),
|
||||
name: joi.string().trim().messages({ "string.empty": "*Name is required." }),
|
||||
type: joi.string().trim().messages({ "string.empty": "*Type is required." }),
|
||||
});
|
||||
|
||||
export {
|
||||
createMonitorValidation,
|
||||
registerValidation,
|
||||
loginValidation,
|
||||
recoveryValidation,
|
||||
|
||||
Reference in new issue
Block a user