项目改造
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"""群聊学习 Web API 子应用(挂载到 /api/learning_chat)。
|
||||
|
||||
统一鉴权走 hexi.web_auth(OAuth2 + SQLite),与统一管理台 /hub 共用登录态。
|
||||
旧版独立后台 /learning_chat(JWT 自鉴权)保留可用,前端由 hub 渲染。
|
||||
前端由统一管理台 hexi/web 渲染。
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -45,9 +45,6 @@ async def _first_bot():
|
||||
|
||||
def build_admin_app() -> FastAPI | None:
|
||||
"""构建群聊学习管理 API 子应用(挂载到 /api/learning_chat)。"""
|
||||
if not config_manager.config.enable_web:
|
||||
return None
|
||||
|
||||
app = FastAPI(title="Learning Chat API")
|
||||
auth = API
|
||||
|
||||
|
||||
Reference in New Issue
Block a user