A small library that validate incoming requests using middleware
npm install express-indicative-validator
const { validate } = require('express-indicative-validator');
router.post('/', validate({ price: 'required|number' }), OrderController.store);
npm test