feat: Add base project structure with API and web components
This commit is contained in:
17
api/app/controllers/service/__init__.py
Normal file
17
api/app/controllers/service/__init__.py
Normal file
@@ -0,0 +1,17 @@
|
||||
"""Service API Controllers - 基于 API Key 认证的服务接口
|
||||
|
||||
路由前缀: /v1
|
||||
认证方式: API Key
|
||||
"""
|
||||
from fastapi import APIRouter
|
||||
from . import app_api_controller, rag_api_controller, memory_api_controller
|
||||
|
||||
# 创建 V1 API 路由器
|
||||
service_router = APIRouter()
|
||||
|
||||
# 注册子路由
|
||||
service_router.include_router(app_api_controller.router)
|
||||
service_router.include_router(rag_api_controller.router)
|
||||
service_router.include_router(memory_api_controller.router)
|
||||
|
||||
__all__ = ["service_router"]
|
||||
Reference in New Issue
Block a user