import logging
from fastapi import APIRouter
from app.schemas import ResponseWrapper
from app.schemas.health_check import HealthCheckResponse

router = APIRouter()

logger = logging.getLogger(__name__)


@router.get(
    "/health-check",
    tags=["Health Check"],
    response_model=ResponseWrapper[HealthCheckResponse],
    summary="Simple health check.",
    status_code=200,
)
async def readiness_check() -> ResponseWrapper[HealthCheckResponse]:
    logger.info("Started GET /ready")
    return ResponseWrapper(status=True, message="OK", data=HealthCheckResponse(status="ok"))
