feat: create a health controller
This commit is contained in:
13
server/src/health.controller.ts
Normal file
13
server/src/health.controller.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
import { HealthCheckService, HealthCheck } from '@nestjs/terminus';
|
||||
|
||||
@Controller('health')
|
||||
export class HealthController {
|
||||
constructor(private health: HealthCheckService) {}
|
||||
|
||||
@Get()
|
||||
@HealthCheck()
|
||||
check() {
|
||||
return this.health.check([]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user