chore: 更新版本号至0.0.74,并在 QueryRouter 中添加 metadata 字段
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/package",
|
||||
"name": "@kevisual/router",
|
||||
"version": "0.0.73",
|
||||
"version": "0.0.74",
|
||||
"description": "",
|
||||
"type": "module",
|
||||
"main": "./dist/router.js",
|
||||
|
||||
@@ -680,7 +680,7 @@ export class QueryRouter {
|
||||
});
|
||||
ctx.body = {
|
||||
list: list.map((item) => {
|
||||
const route = pick(item, ['id', 'path', 'key', 'description', 'middleware'] as const);
|
||||
const route = pick(item, ['id', 'path', 'key', 'description', 'middleware', 'metadata'] as const);
|
||||
return toJSONSchema(route);
|
||||
}),
|
||||
isUser
|
||||
|
||||
Reference in New Issue
Block a user