Added monitor router, controller, and model
This commit is contained in:
1 parent
0abda6fd21
commit
def8ba4b9d
5 files changed
+96
-26
No files matched your search
@@ -1,10 +1,12 @@
|
||||
const joi = require('joi')
|
||||
|
||||
const joi = require("joi");
|
||||
|
||||
const authValidation = joi.object({
|
||||
email: joi.string().email().required(),
|
||||
password: joi.string().min(8).required(),
|
||||
email: joi.string().email().required(),
|
||||
password: joi.string().min(8).required(),
|
||||
});
|
||||
|
||||
const getMonitorsByIdValidation = joi.object({
|
||||
monitorId: joi.string().required(),
|
||||
});
|
||||
|
||||
module.exports = {authValidation}
|
||||
module.exports = { authValidation, getMonitorsByIdValidation };
|
||||
Reference in new issue
Block a user