text: const { validationResult } = require("express-validator");
  
  const validateFIeld = (req, res, next) => {
    const errors = validationResult(req);
    if (!errors.isEmpty()) {
      return res.status(400).json(errors);
    }
    next();
  };
  module.exports = { validateFIeld };
  