feat: 优化项目目录结构
This commit is contained in:
12
apps/backend/src/resource/resource.controller.ts
Normal file
12
apps/backend/src/resource/resource.controller.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
import { ResourceService } from './resource.service';
|
||||
|
||||
@Controller('resource')
|
||||
export class ResourceController {
|
||||
constructor(private readonly resourceService: ResourceService) {}
|
||||
|
||||
@Get()
|
||||
async getResource() {
|
||||
return this.resourceService.findAll();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user