添加资源模块,添加资源获取接口

This commit is contained in:
2025-05-07 18:14:31 +08:00
parent 9570fb4524
commit a661827842
7 changed files with 122 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
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();
}
}