feat: add health check endpoint
This commit is contained in:
@@ -145,7 +145,7 @@ app: FastAPI = FastAPI(
|
|||||||
redoc_url=None,
|
redoc_url=None,
|
||||||
docs_url=None,
|
docs_url=None,
|
||||||
lifespan=lifespan,
|
lifespan=lifespan,
|
||||||
title='Bitforce. Auth Service',
|
title='Elcsa. Auth Service',
|
||||||
version='1.0.0',
|
version='1.0.0',
|
||||||
description='',
|
description='',
|
||||||
license_info={
|
license_info={
|
||||||
@@ -207,5 +207,10 @@ async def ping() -> dict[str, str]:
|
|||||||
'status': 'ok',
|
'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