reest
Version:
A library inspired by NestJS's elegance, specifically designed for efficient serverless API development on AWS Lambda. It streamlines the creation of microservices with automated Swagger documentation and enhanced decorator-based middleware support, makin
12 lines (11 loc) • 342 B
text/typescript
export interface RouteDefinition {
// Path to our route
path?: string;
// HTTP Request method (get, post, ...)
requestMethod?: "get" | "post" | "delete" | "options" | "put" | "patch";
// Method name within our class responsible for this route
methodName: string | symbol;
openApi?: any;
middlewares?: any[];
multer?: any;
}