# -*- coding: utf-8 -*- """ API v1 路由汇总 所有 v1 版本的子路由在此注册,由 main.py 统一挂载到 /api/v1 前缀。 """ from fastapi import APIRouter from app.api.v1.endpoints import auth, health, logs, reports api_v1_router = APIRouter() # 挂载各业务模块路由 api_v1_router.include_router(health.router, prefix="", tags=["系统"]) api_v1_router.include_router(auth.router, prefix="/auth", tags=["认证"]) api_v1_router.include_router(logs.router, prefix="/logs", tags=["客户日志"]) api_v1_router.include_router(reports.router, prefix="/reports", tags=["数据报告"]) # 后续新增模块在此追加,例如: # from app.api.v1.endpoints import clients, expenses # api_v1_router.include_router(clients.router, prefix="/clients", tags=["客户管理"]) # api_v1_router.include_router(expenses.router, prefix="/expenses", tags=["报销管理"])