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

32 lines (26 loc) 625 B
```javascript import { Controller, Delete, Get, Param, Patch, Put } from "reest"; @Controller("/cats") export class CatsController { @Get("/") findAll() { return "This action returns all users"; } @Get("/:id") findOne(@Param("id") id: string) { return `This action returns a user with id ${id}`; } @Put("/") create() { return "This action adds a new user"; } @Patch("/:id") update(@Param("id") id: string) { return `This action updates a user with id ${id}`; } @Delete("/:id") remove(@Param("id") id: string) { return `This action removes a user with id ${id}`; } } ```