16 lines
321 B
Python
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(),
|
|
}
|