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) 278 B
import { Log } from "../../utils/Log"; export function Controllers(...controllers: any[]): ClassDecorator { return (target: any) => { Log(`App is initialized with ${controllers.length} controllers`); Reflect.defineMetadata("Controllers", controllers, target); }; }