v0.1.0: CRM/ERP 系统内测版本 - 安全加固完成
- Docker bridge 网络隔离(8000 端口封死) - Gunicorn 4 Worker 多进程 - Alembic 数据库迁移基线 - 日志轮转 20m×3 - JWT 密钥 + DB 密码 + CORS 收紧 - 3-2-1 备份链路(NAS + R740-B 冷备) - 连接池 pool_pre_ping + pool_recycle=3600
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# -*- 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=["报销管理"])
|
||||
Reference in New Issue
Block a user