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