refactor: migrate backend framework from Express to NestJS
This commit is contained in:
9
src/health.controller.ts
Normal file
9
src/health.controller.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
|
||||
@Controller('health')
|
||||
export class HealthController {
|
||||
@Get()
|
||||
check() {
|
||||
return { status: 'ok', message: '服务器运行正常' };
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user