22 lines
468 B
Python
22 lines
468 B
Python
"""Health check endpoints."""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from app.config import settings
|
|
from app.schemas.common import HealthResponse
|
|
|
|
router = APIRouter(tags=["Health"])
|
|
|
|
|
|
@router.get("/health", response_model=HealthResponse)
|
|
async def health_check() -> HealthResponse:
|
|
"""
|
|
Health check endpoint.
|
|
|
|
Returns the current status and version of the API.
|
|
"""
|
|
return HealthResponse(
|
|
status="ok",
|
|
version=settings.APP_VERSION,
|
|
)
|