system health 추가
This commit is contained in:
14
backend/src/system/system.controller.ts
Normal file
14
backend/src/system/system.controller.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
import { SystemService, SystemHealthResponse } from './system.service';
|
||||
import { Public } from '../common/decorators/public.decorator';
|
||||
|
||||
@Controller('system')
|
||||
export class SystemController {
|
||||
constructor(private readonly systemService: SystemService) {}
|
||||
|
||||
@Public()
|
||||
@Get('health')
|
||||
async getHealth(): Promise<SystemHealthResponse> {
|
||||
return this.systemService.getHealth();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user