added comp_systems and all databases
This commit is contained in:
18
dockerfile_build/src/api_endpoint/health_api.py
Normal file
18
dockerfile_build/src/api_endpoint/health_api.py
Normal file
@@ -0,0 +1,18 @@
|
||||
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"}
|
||||
Reference in New Issue
Block a user