diff --git a/package.json b/package.json index 0d3d8c0..030509b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kevisual/api", - "version": "0.0.13", + "version": "0.0.14", "description": "", "main": "mod.ts", "scripts": { diff --git a/query/query-proxy/index.ts b/query/query-proxy/index.ts index 9075c45..134eabe 100644 --- a/query/query-proxy/index.ts +++ b/query/query-proxy/index.ts @@ -326,6 +326,13 @@ export class QueryProxy { } return routes; } + async getViewQuery(viewId: string) { + const view = this.views.find(v => v.id === viewId); + if (view) { + return view.query; + } + return undefined; + } /** * 运行路由 * @param msg