/** * # Resource Discovery 控制器(docs 03 §90;/api/v1/v2/resources) */ import { Controller, Get } from "@nestjs/common"; import { ActionRuntime } from "../runtime/action-runtime"; @Controller("v2/resources") export class V2ResourcesController { constructor(private readonly runtime: ActionRuntime) {} /** # 资源发现 */ @Get() list() { return this.runtime.discoverResources(); } }