Initial commit: 浼佷笟寰俊 AI 鏈哄櫒浜哄姪鐞?MVP
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
15
backend/app/routers/health.py
Normal file
15
backend/app/routers/health.py
Normal file
@@ -0,0 +1,15 @@
|
||||
"""健康检查:供负载均衡与 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(),
|
||||
}
|
||||
Reference in New Issue
Block a user