"""Health check router. A lightweight ``GET /api/health`` endpoint that verifies the application is running and can serve requests. It does not probe fail2ban — that responsibility belongs to the health service (Stage 4). """ from fastapi import APIRouter from fastapi.responses import JSONResponse router: APIRouter = APIRouter(prefix="/api", tags=["Health"]) @router.get("/health", summary="Application health check") async def health_check() -> JSONResponse: """Return a 200 response confirming the API is operational. Returns: A JSON object with ``{"status": "ok"}``. """ return JSONResponse(content={"status": "ok"})