UNPKG

@szegedsw/lib-node

Version:

A little framework published by Szeged Software Zrt. in order to enhance api endpoint security and create reuseable code. Email module, Logging system, and much more. Further improvements are expected.

9 lines 389 B
import { NextFunction, Request, Response } from "express"; import { Controller } from "../controller/controller.class"; export declare type Middleware = (req: Request, res: Response, next: NextFunction) => Promise<void> | void; export interface IRoute { path: string; middlewares?: Middleware[]; handler?: Controller | IRoute[]; } //# sourceMappingURL=iroute.interface.d.ts.map