fix(legacy): keep static shell available during migration

This commit is contained in:
leefer
2026-07-30 20:27:57 +08:00
parent 7e1bc48ee0
commit c3598820ef
4 changed files with 32 additions and 5 deletions
+5 -4
View File
@@ -4779,10 +4779,11 @@ class RequestHandler(BaseHTTPRequestHandler):
if parsed.path == "/api/auth/me":
self.auth_me()
return
if parsed.path.startswith("/api/") and not self.require_auth():
return
if not self.require_access("GET", parsed.path):
return
if parsed.path.startswith("/api/"):
if not self.require_auth():
return
if not self.require_access("GET", parsed.path):
return
if parsed.path == "/api/admin/settings":
self.send_json(
{"ok": True, **SERVICE.system_status(), "users": SERVICE.admin_users()}