Files
quantum_backend/dockerfile_build/src/api_endpoint/health_api.py

19 lines
378 B
Python

from fastapi import APIRouter
from fastapi_cache.decorator import cache
router = APIRouter()
@router.get(
"/health",
responses={
200: {
"description": "Is the service running?",
"content": {"application/json": {"example": {"status": "healthy"}}},
},
},
)
@cache()
async def health_check():
return {"status": "healthy"}