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
@@ -43,8 +43,6 @@ export function adminAuditRoutes() {
},
}),
async (c) => {
const guard = await requireAdminSession(c, async () => {});
if (guard) return guard;
const q = c.req.query();
const page = Math.max(1, Number(q.page ?? 1) || 1);
const page_size = Math.min(