INNER CODE UNIT · Python
read_root
asacristani/fastapi-rocket-boilerplate · app/main.py:54
def read_root():
return {"msg": "Welcome to the backend core in FastAPI!"}
def check_db_connection():
try:
with get_engine().connect():
return True
except OperationalError:
return False
@app.get("/check_health", tags=["general"])
async def check_health():
"""
Check all the services in the infrastructure are working
"""
ok_code = "running"