const {body, validationResult} = require('express-validator') const v_m = require('../validation_messages') const validationMessages = { fa: {}, en: {} } module.exports = [ [ body('method') .notEmpty().withMessage(), body('type') .notEmpty().withMessage(), body('class') .notEmpty().withMessage(), body('pointLoad') .notEmpty().withMessage(), body('distributedLoad') .notEmpty().withMessage(), body('bearingBarPitch') .notEmpty().withMessage(), body('crossBarPitCh') .notEmpty().withMessage(), body('clearSpan') .notEmpty().withMessage(), body('bearingBarThickness') .notEmpty().withMessage(), body('bearingBarHeight') .notEmpty().withMessage() ], (req, res) => { } ]