"""Service health endpoint.""" from typing import Annotated from fastapi import APIRouter, Depends from app.core.config import Settings, get_settings from app.schemas.common import ApiResponse, HealthData router = APIRouter(tags=["health"]) @router.get("/health", response_model=ApiResponse[HealthData]) async def health(settings: Annotated[Settings, Depends(get_settings)]) -> ApiResponse[HealthData]: return ApiResponse(data=HealthData(service=settings.app_name, version=settings.app_version))