carcost/api/routers/__init__.py
2026-04-10 23:24:51 +08:00

21 lines
573 B
Python

"""
路由模块统一导出
使用示例:
from routers import vehicles_router, fuel_records_router, costs_router, dashboard_router
app.include_router(vehicles_router, prefix="/carcost")
app.include_router(fuel_records_router, prefix="/carcost")
"""
from .vehicles import router as vehicles_router
from .fuel_records import router as fuel_records_router
from .costs import router as costs_router
from .dashboard import router as dashboard_router
__all__ = [
"vehicles_router",
"fuel_records_router",
"costs_router",
"dashboard_router",
]