feat: add health check endpoint

This commit is contained in:
2026-06-29 10:39:45 +03:00
parent 34a050847e
commit 9312f71f79

View File

@@ -145,7 +145,7 @@ app: FastAPI = FastAPI(
redoc_url=None,
docs_url=None,
lifespan=lifespan,
title='Bitforce. Auth Service',
title='Elcsa. Auth Service',
version='1.0.0',
description='',
license_info={
@@ -207,5 +207,10 @@ async def ping() -> dict[str, str]:
'status': 'ok',
}
@app.get('/health')
async def health() -> dict[str, str]:
return {
'status': 'ok',
}
app.openapi = custom_openapi