fix: add sync-lsky to admin route gate (404 on migrate call)
This commit is contained in:
@@ -112,7 +112,7 @@ const server = http.createServer(async (req, res) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ---- 管理(仅 is_admin 登录会话) ----
|
// ---- 管理(仅 is_admin 登录会话) ----
|
||||||
if (route === '/admin/users' || route === '/admin/invites' || route === '/admin/demo-seed' || route.startsWith('/admin/invites/')) {
|
if (route === '/admin/users' || route === '/admin/invites' || route === '/admin/demo-seed' || route === '/admin/attachments/sync-lsky' || route.startsWith('/admin/invites/')) {
|
||||||
let auth;
|
let auth;
|
||||||
try { auth = authUser(req); }
|
try { auth = authUser(req); }
|
||||||
catch (e) { return send(e.code || 401, false, e.message); }
|
catch (e) { return send(e.code || 401, false, e.message); }
|
||||||
|
|||||||
Reference in New Issue
Block a user