controller1 [NestJS] Controllers 컨트롤러는 들어오는 요청을 처리하고 클라이언트에게 응답을 다시 보내는 역할을 한다.CLInest g controller [name] Routing@Controller() 데코레이터에 path를 지정하면 관련 라우트를 그룹화할 수 있다.import { Controller, Get } from '@nestjs/common';@Controller('cats') // `/cats`export class CatsController { @Get() // GET /cats findAll(): string { return 'This action returns all cats'; } @Get('breed') // GET /cats/breed findAll(): string { return 'This .. 2025. 5. 18. 이전 1 다음 반응형