Update server.py

This commit is contained in:
Gao Jinzhe
2025-06-16 10:03:18 +08:00
committed by GitHub
parent 791db65526
commit dae745d925
+2 -1
View File
@@ -36,7 +36,8 @@ class AstrBotDashboard:
) # 将 Flask 允许的最大上传文件体大小设置为 128 MB
self.app.json.sort_keys = False
self.app.before_request(self.auth_middleware)
# token 用于验证请求 logging.getLogger(self.app.name).removeHandler(default_handler)
# token 用于验证请求
logging.getLogger(self.app.name).removeHandler(default_handler)
self.context = RouteContext(self.config, self.app)
self.ur = UpdateRoute(
self.context, core_lifecycle.astrbot_updator, core_lifecycle