UNPKG
setup-mern
Version:
latest (1.1.0)
1.1.0
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
/
postValidation.js
8 lines
(6 loc)
•
187 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
const
Joi = require(
'joi'
);
const
createPostSchema = Joi.
object
({ title: Joi.
string
().
required
(), content: Joi.
string
().
required
(), }); module.exports = { createPostSchema };