13 lines
326 B
Python
13 lines
326 B
Python
"""Health check endpoint — unauthenticated."""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from app.config import settings
|
|
|
|
router = APIRouter(tags=["health"])
|
|
|
|
|
|
@router.get("/health")
|
|
def health_check() -> dict[str, str]:
|
|
"""Return service health status and version."""
|
|
return {"status": "ok", "version": settings.APP_VERSION}
|