14 lines
306 B
TypeScript
14 lines
306 B
TypeScript
import { Controller, Get } from '@nestjs/common';
|
|
import { HealthCheckService, HealthCheck } from '@nestjs/terminus';
|
|
|
|
@Controller('healthz')
|
|
export class HealthController {
|
|
constructor(private health: HealthCheckService) {}
|
|
|
|
@Get()
|
|
@HealthCheck()
|
|
check() {
|
|
return this.health.check([]);
|
|
}
|
|
}
|