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