()
| 17 | response_model=BaseEmptyResponse, |
| 18 | ) |
| 19 | async def api_health_check(): |
| 20 | from app.database import redis_conn, postgres_pool |
| 21 | |
| 22 | if not await redis_conn.health_check(): |
| 23 | raise HTTPException(status_code=500, detail="Redis health check failed.") |
| 24 | if not await postgres_pool.health_check(): |
| 25 | raise HTTPException(status_code=500, detail="Postgres health check failed.") |
| 26 | return BaseEmptyResponse() |
| 27 | |
| 28 | |
| 29 | @router.get( |
nothing calls this directly
no test coverage detected