import { Controller, Get } from '@nestjs/common'; import { ApiTags, ApiOperation } from '@nestjs/swagger'; import { AppService } from './app.service'; @ApiTags('Health Check') @Controller() export class AppController { constructor(private readonly appService: AppService) {} @Get() @ApiOperation({ summary: 'Get hello message' }) getHello(): string { return this.appService.getHello(); } @Get('health') @ApiOperation({ summary: 'API Health Check' }) async getHealth() { return this.appService.getHealth(); } }