"""Controller for the health endpoints."""
from fastapi import APIRouter
from pydantic import BaseModel

router = APIRouter()


class HealthCheckResponse(BaseModel):
    """Model for health check responses."""

    online: bool


@router.get("", response_model=HealthCheckResponse, description="Health check endpoint")
def health() -> HealthCheckResponse:
    """Get the current status of the service."""
    return HealthCheckResponse(online=True)

"""Controller for the health endpoints."""
from fastapi import APIRouter
from pydantic import BaseModel

router = APIRouter()


class HealthCheckResponse(BaseModel):
    """Model for health check responses."""

    online: bool


@router.get("", response_model=HealthCheckResponse, description="Health check endpoint")
def health() -> HealthCheckResponse:
    """Get the current status of the service."""
    return HealthCheckResponse(online=True)

Controller for the health endpoints. Model for health check responses. Get the current status of the service.