"""Health endpoint router.""" from fastapi import APIRouter router = APIRouter() @router.get("/api/health") async def health_check() -> dict: """Deploy health and smoke path. Returns: Health status with woo_reachable flag. When Woo credentials are not configured, woo_reachable is False. Contract (OPENAPI): GET /api/health → { "status": "ok", "version": "...", "woo_reachable": bool } """ return { "status": "ok", "version": "0.1.0", "woo_reachable": False, }