"""Liveness / readiness endpoints."""

from __future__ import annotations

from fastapi import APIRouter

from ocr_sprint import __version__

router = APIRouter(tags=["health"])


@router.get("/health")
async def health() -> dict[str, str]:
    """Lightweight liveness check — does NOT touch the OCR engine."""
    return {"status": "ok", "version": __version__}
