init:创建后端项目框架,确保环境的基本运行
This commit is contained in:
12
src/app.controller.ts
Normal file
12
src/app.controller.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
import { AppService } from './app.service';
|
||||
|
||||
@Controller()
|
||||
export class AppController {
|
||||
constructor(private readonly appService: AppService) {}
|
||||
|
||||
@Get()
|
||||
getStatus(): string {
|
||||
return this.appService.getStatus();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user