UNPKG

@dechamp/express-auto-route

Version:

An express auto route module which allows routes and middleware to be configured via config file.

13 lines (12 loc) 303 B
export interface Schema { query?: any; body?: any; params?: any; } export default class RouteRequestJsonSchemaValidator { callback(req: any, res: any, next: any): any; private validateParams; private validateQuery; private validateBody; private buildRequestJsonSchema; }