[NestJS] 2장 컨트롤러
1. 컨트롤러(Controller)NestJS에서 컨트롤러는 요청을 처리하고 응답을 반환하는 역할로, 주로 HTTP 요청을 처리하는 메서드를 포함합니다. 컨트롤러를 생성하려면 Nest CLI를 사용할 수 있습니다.nest generate controller cats 생성된 cats 컨트롤러 파일은 다음과 같은 기본 구조를 가집니다.import { Controller, Get } from '@nestjs/common';@Controller('cats')export class CatsController { @Get() @findAll(): string { return 'This action returns all cats'; }} HTTP 요청 메서드 데코레이터@Get(), @Po..