更新 package.json 和多个路由,添加描述和元数据,增强功能和可读性
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user