refactor: Update response types to use common schemas across API endpoints
Some checks failed
Backend CI / test (push) Failing after 3m51s

This commit is contained in:
JSC
2025-07-31 10:40:03 +02:00
parent dc372b961e
commit c13285ca4e
7 changed files with 101 additions and 37 deletions

View File

@@ -3,6 +3,7 @@
from fastapi import APIRouter
from app.core.logging import get_logger
from app.schemas.common import HealthResponse
router = APIRouter()
@@ -10,7 +11,7 @@ logger = get_logger(__name__)
@router.get("/")
def health() -> dict[str, str]:
def health() -> HealthResponse:
"""Health check endpoint."""
logger.info("Health check endpoint accessed")
return {"status": "healthy"}
return HealthResponse(status="healthy")