forked from mtusi2026/mtusi2026lab2
feat: init after lab 1
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
import { HealthService } from './health.service.js';
|
||||
|
||||
@Controller('health')
|
||||
export class HealthController {
|
||||
constructor(private readonly healthService: HealthService) {}
|
||||
|
||||
@Get('live')
|
||||
getLive() {
|
||||
return this.healthService.getLiveness();
|
||||
}
|
||||
|
||||
@Get('ready')
|
||||
getReady() {
|
||||
return this.healthService.getReadiness();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user