Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/health/health.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@ export class HealthController {
}

@Get('health/live')
live() {
return this.probeService.live();
async live(@Res({ passthrough: true }) response: Response) {
const report = await this.probeService.live();
this.applyProbeStatus(response, report.status);
return report;
}

@Get('health')
healthAlias() {
return this.probeService.live();
async healthAlias(@Res({ passthrough: true }) response: Response) {
const report = await this.probeService.live();
this.applyProbeStatus(response, report.status);
return report;
}

@Get('health/startup')
Expand Down
Loading