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