Files
wecom-ai-assistant/backend/app/routers/health.py
2026-02-05 16:36:32 +08:00

16 lines
321 B
Python

"""健康检查:供负载均衡与 CI 验证。"""
from fastapi import APIRouter
from app.logging_config import get_trace_id
router = APIRouter()
@router.get("/health")
def health():
return {
"code": 0,
"message": "ok",
"data": {"status": "up"},
"trace_id": get_trace_id(),
}