16 lines
358 B
TypeScript
16 lines
358 B
TypeScript
import { Controller, Get } from '@nestjs/common';
|
|
|
|
@Controller('health')
|
|
export class HealthController {
|
|
@Get()
|
|
check(): { status: string } {
|
|
return { status: 'ok' };
|
|
}
|
|
|
|
/** Readiness intentionally exposes no configuration, provider, or credential details. */
|
|
@Get('ready')
|
|
ready(): { status: string } {
|
|
return { status: 'ready' };
|
|
}
|
|
}
|