File size: 419 Bytes
60606a1 d0e5205 60606a1 e00a29f 60606a1 | 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 { AppService } from './app.service';
import { version } from '../../package.json';
@Controller()
export class AppController {
constructor(private readonly appService: AppService) {}
@Get()
version() {
return { message: `version: ${version}` };
}
@Get('/health')
getHealthStatus() {
return { status: 'ok', uptime: process.uptime() };
}
}
|