feat: add /api/healthz endpoint (#)
CI / lint (push) Successful in 9s
CI / lint (pull_request) Successful in 6s
CI / test (push) Successful in 4s
CI / test (pull_request) Successful in 4s
CI / notify-on-failure (push) Successful in 2s
CI / notify-on-failure (pull_request) Successful in 3s

This commit is contained in:
cfdaily
2026-06-08 22:03:06 +08:00
parent fdc08602b3
commit 7590247f48
+9
View File
@@ -0,0 +1,9 @@
"""Health check endpoint."""
from fastapi import APIRouter
router = APIRouter()
@router.get("/api/healthz")
async def healthz():
"""Lightweight health check."""
return {"status": "ok"}