更新 package.json 和多个路由,添加描述和元数据,增强功能和可读性

This commit is contained in:
2025-12-29 03:36:25 +08:00
parent 64ba53f73c
commit 9067be1293
6 changed files with 71 additions and 7 deletions

View File

@@ -4,7 +4,11 @@ import { app, core } from "../../app.ts";
app.route({
path: 'page',
key: 'go',
middleware: ['auth']
middleware: ['auth'],
description: '导航到指定页面。参数url (string, 必需) - 目标 URL 地址',
metadata: {
tags: ['浏览器操作'],
}
}).define(async (ctx) => {
const url = ctx.query?.url as string;
if (!url) {