perf: 去掉 handler 内层重复鉴权

鉴权只保留各路由 r.use 一次,受保护请求少一轮会话查库。
This commit is contained in:
2026-10-06 13:19:53 +08:00
parent 54ea686f44
commit de48e5d39c
8 changed files with 0 additions and 44 deletions
-2
View File
@@ -31,8 +31,6 @@ export function adminEngineRoutes() {
},
}),
async (c) => {
const guard = await requireAdminSession(c, async () => {});
if (guard) return guard;
return c.json(engineStatus, 200);
},
);