File size: 498 Bytes
7b7e57d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';
import { ApiTags, ApiOperation, ApiResponse } from '@nestjs/swagger';
@ApiTags('系统状态')
@Controller()
export class AppController {
constructor(private readonly appService: AppService) { }
@Get()
@ApiOperation({ summary: '健康检查' })
@ApiResponse({ status: 200, description: '系统运行正常' })
getHello(): object {
return this.appService.getHello();
}
}
|