import { Controller, Get } from '@nestjs/common'; import { ApiTags, ApiOperation } from '@nestjs/swagger'; @ApiTags('Root') @Controller('/') export class RootController { @Get('/') @ApiOperation({ summary: 'Welcome page' }) getRoot(): string { return 'App is running!'; } @Get('/health') @ApiOperation({ summary: 'Health check endpoint' }) getHealth() { return { status: 'OK', timestamp: new Date().toISOString() }; } }