feat: add health check endpoint

This commit is contained in:
2026-06-16 11:40:08 +03:00
parent 9243d3db2d
commit 4bdf295007

View File

@@ -180,5 +180,10 @@ async def custom_redoc_html(_credentials: HTTPBasicCredentials = Depends(verify_
async def ping() -> dict[str, str]:
return {'message': 'pong', 'status': 'ok'}
@app.get('/health')
async def health() -> dict[str, str]:
return {
'status': 'ok',
}
app.openapi = custom_openapi