You've already forked DataMate
Develop labeling module (#25)
* refactor: remove db table management from LS adapter (mv to scripts later); change adapter to use the same MySQL DB as other modules. * refactor: Rename LS Adapter module to datamate-python
This commit is contained in:
19
runtime/datamate-python/app/api/__init__.py
Normal file
19
runtime/datamate-python/app/api/__init__.py
Normal file
@@ -0,0 +1,19 @@
|
||||
"""
|
||||
API 路由模块
|
||||
|
||||
集中管理所有API路由的组织结构
|
||||
"""
|
||||
from fastapi import APIRouter
|
||||
|
||||
from .system import router as system_router
|
||||
from .project import project_router
|
||||
|
||||
# 创建主API路由器
|
||||
api_router = APIRouter()
|
||||
|
||||
# 注册到主路由器
|
||||
api_router.include_router(system_router, tags=["系统"])
|
||||
api_router.include_router(project_router, prefix="/project", tags=["项目"])
|
||||
|
||||
# 导出路由器供 main.py 使用
|
||||
__all__ = ["api_router"]
|
||||
Reference in New Issue
Block a user