chore: 更新版本号至0.0.74,并在 QueryRouter 中添加 metadata 字段

This commit is contained in:
2026-02-18 03:25:09 +08:00
parent 074775985e
commit b2f718c492
2 changed files with 2 additions and 2 deletions

View File

@@ -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",

View File

@@ -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