17 lines
544 B
Python
17 lines
544 B
Python
"""地磅 API 路由聚合 — REST 风格,协议对齐原 simple-dibang-xiaoshou。"""
|
|
from fastapi import APIRouter
|
|
|
|
from app.api.db import dashboard, inventory, plans, weighing
|
|
|
|
db_router = APIRouter(tags=["地磅管理"])
|
|
db_router.include_router(plans.router)
|
|
db_router.include_router(inventory.router)
|
|
db_router.include_router(weighing.router)
|
|
db_router.include_router(dashboard.router)
|
|
|
|
|
|
@db_router.get("/db/health")
|
|
def db_health():
|
|
"""P0 健康检查:验证 db 路由已挂载。"""
|
|
return {"status": "ok", "module": "db"}
|