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
28 lines (25 loc) • 675 B
text/typescript
import { App, Controllers, PORT, Openapi, UseGlobalInterceptor } from "reest";
import { CatsController } from "./controllers/cats.controller";
import {
TimeTrackingInterceptor,
TestInterceptor,
} from "./middlewares/TimeTrackingInterceptor";
// @UseGlobalMiddleware(LoggerMiddleware, {
// forRoutes: [{
// path: "/cats",
// method: "GET",
// }],
// })
// @UseGlobalPipe(ValidationPipe)
// @UseGlobalGuard(AuthGuard)
class MyRestApi extends App {}
new MyRestApi();