优化rescourse读取方式

This commit is contained in:
朱潮 2026-05-20 19:51:46 +08:00
parent ad554b2d80
commit f6e8f569ed

View File

@ -256,11 +256,7 @@ app.include_router(bot_manager.router)
app.include_router(payment.router)
app.include_router(memory.router)
<<<<<<< HEAD
=======
<<<<<<< HEAD
>>>>>>> 319bd8cd59268f2b16dce2dfa14820cb34c4c8b8
# 注册语音对话路由
app.include_router(voice.router)
@ -270,22 +266,12 @@ app.include_router(file_manager_router)
# 注册知识库API路由
app.include_router(knowledge_base.router, prefix="/api/v1/knowledge-base", tags=["knowledge-base"])
<<<<<<< HEAD
=======
# 挂载 WsgiDAVWSGI 应用通过 WSGIMiddleware 集成到 ASGI
# MCP App resources endpoint
app.include_router(mcp_resources_router)
=======
# 挂载 WsgiDAVWSGI 应用通过 WSGIMiddleware 集成到 ASGI
>>>>>>> feature/mcp-ui
# Register the file management API routes
app.include_router(file_manager_router)
>>>>>>> 319bd8cd59268f2b16dce2dfa14820cb34c4c8b8
# Mount WsgiDAV (the WSGI app is integrated into ASGI via WSGIMiddleware)
from starlette.middleware.wsgi import WSGIMiddleware