feat: 初始化项目
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { Controller, Get, Module } from '@nestjs/common';
|
||||
|
||||
@Controller('health')
|
||||
class HealthController {
|
||||
@Get()
|
||||
check() {
|
||||
return { status: 'ok', service: 'api' };
|
||||
}
|
||||
}
|
||||
|
||||
@Module({ controllers: [HealthController] })
|
||||
export class AppModule {}
|
||||
Reference in New Issue
Block a user