UNPKG

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

9 lines (7 loc) 285 B
import { Log } from "../../utils/Log"; export function Middlewares(...middlewares: any[]): ClassDecorator { return (target: any) => { Log(`App is initialized with ${middlewares.length} global middlewares`); Reflect.defineMetadata("Middlewares", middlewares, target); }; }