yangzhitao
feat: integrate FastAPI backend and health check functionality
b4929ca
raw
history blame contribute delete
320 Bytes
from datetime import datetime, timezone
from fastapi import APIRouter
router = APIRouter(tags=["health"])
@router.get("/")
async def health():
utc_now = datetime.now(timezone.utc).isoformat()
return {
"code": 0,
"msg": "ok",
"data": {
"utc_now": utc_now,
},
}