refactor: 移除旧版单文件管理后台兼容

This commit is contained in:
2026-07-15 07:46:30 +00:00
parent 4df439b5ce
commit 0b71e8d024
17 changed files with 16 additions and 2744 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ async def admin_audit_middleware(request: Request, call_next):
if should_audit:
try:
principal = getattr(request.state, "admin_principal", None)
token = request.headers.get("authorization", "") or request.headers.get("X-Admin-Token", "")
token = request.headers.get("authorization", "")
conn = db.get_conn()
conn.execute(
"""INSERT INTO admin_audit_logs