mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2025-12-06 14:44:08 +00:00
- moved to typescript - axios rate limitmodule is busted, removed for now, do something else for that - sequelize-typescript - dotenv, not dotenv-flow - removed playlist details route types for API ton of minor fixes and improvements
14 lines
335 B
TypeScript
14 lines
335 B
TypeScript
import type { RequestHandler } from "express";
|
|
import { body, header, param, query } from "express-validator";
|
|
|
|
const __validator_func: RequestHandler = async (req, _res, next) => {
|
|
await body("field_name")
|
|
.notEmpty()
|
|
.withMessage("field_name not defined in body")
|
|
.run(req);
|
|
|
|
next();
|
|
};
|
|
|
|
export { __validator_func };
|