14 lines
283 B
Python
14 lines
283 B
Python
"""Health and readiness endpoints for orchestration and uptime checks."""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
|
|
router = APIRouter(prefix="/health", tags=["health"])
|
|
|
|
|
|
@router.get("")
|
|
def health() -> dict[str, str]:
|
|
"""Returns service liveness status."""
|
|
|
|
return {"status": "ok"}
|