feat: add health check endpoint
This commit is contained in:
@@ -180,5 +180,10 @@ async def custom_redoc_html(_credentials: HTTPBasicCredentials = Depends(verify_
|
|||||||
async def ping() -> dict[str, str]:
|
async def ping() -> dict[str, str]:
|
||||||
return {'message': 'pong', 'status': 'ok'}
|
return {'message': 'pong', 'status': 'ok'}
|
||||||
|
|
||||||
|
@app.get('/health')
|
||||||
|
async def health() -> dict[str, str]:
|
||||||
|
return {
|
||||||
|
'status': 'ok',
|
||||||
|
}
|
||||||
|
|
||||||
app.openapi = custom_openapi
|
app.openapi = custom_openapi
|
||||||
|
|||||||
Reference in New Issue
Block a user