Initial commit

This commit is contained in:
Alex committed 2026-11-02 22:54:14 +08:00
commit 57fc3525eb
7311 files changed
+1291398

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
"""
app/api/routes.py - API 路由聚合入口
职责:
- 聚合所有子路由模块
- 保持向后兼容(外部仍使用 from app.api.routes import router)
"""
from fastapi import APIRouter
# 导入子路由
from app.api.chat import router as chat_router
from app.api.anthropic_routes import router as anthropic_router
from app.api.config_routes import router as config_router
from app.api.system import router as system_router
from app.api.tab_routes import router as tab_router
from app.api.cmd_routes import router as cmd_router # 🆕 命令系统
from app.api.browser_routes import router as browser_router
from app.api.provider import router as provider_router
from app.api.adapter_routes import router as adapter_router # R1-3 站点适配器在线更新
from app.api.metrics_routes import router as metrics_router # R2-7 Prometheus 指标
# 创建主路由器
router = APIRouter()
# 聚合所有子路由
router.include_router(chat_router)
router.include_router(anthropic_router)
router.include_router(config_router)
router.include_router(system_router)
router.include_router(tab_router)
router.include_router(cmd_router) # 🆕
router.include_router(browser_router)
router.include_router(provider_router)
router.include_router(adapter_router)
router.include_router(metrics_router)