mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2026-01-25 06:04:05 +00:00
editorconfig
This commit is contained in:
@@ -3,19 +3,19 @@ const { body, header, param, query } = require("express-validator");
|
||||
const typedefs = require("../typedefs");
|
||||
|
||||
/**
|
||||
* @param {typedefs.Req} req
|
||||
* @param {typedefs.Res} res
|
||||
* @param {typedefs.Next} next
|
||||
* @param {typedefs.Req} req
|
||||
* @param {typedefs.Res} res
|
||||
* @param {typedefs.Next} next
|
||||
*/
|
||||
const __validator_func = async (req, res, next) => {
|
||||
await body("field_name")
|
||||
.notEmpty()
|
||||
.withMessage("field_name not defined in body")
|
||||
.run(req);
|
||||
await body("field_name")
|
||||
.notEmpty()
|
||||
.withMessage("field_name not defined in body")
|
||||
.run(req);
|
||||
|
||||
next();
|
||||
next();
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
__validator_func
|
||||
__validator_func
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user