File size: 446 Bytes
3722089 6417176 3722089 6417176 3722089 6417176 3722089 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 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() };
}
}
|