UNPKG
setup-mern
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
A CLI tool to generate a MERN backend boilerplate in seconds!
setup-mern
/
templates
/
src
/
validations
/
userValidation.js
7 lines
(5 loc)
•
158 B
JavaScript
View Raw
1
2
3
4
5
6
7
const
Joi = require(
'joi'
);
const
getUserSchema = Joi.
object
({ id: Joi.
string
().hex().length(
24
).
required
(), }); module.exports = { getUserSchema };