From d7ea6ad72ed37dca8e2acb032983e488c1fe70a9 Mon Sep 17 00:00:00 2001 From: dev1lfreak Date: Mon, 29 Jun 2026 11:01:53 +0300 Subject: [PATCH] feat: add health check endpoint and change swagger's name --- src/main.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index 77a6a91..dd7986a 100644 --- a/src/main.py +++ b/src/main.py @@ -80,7 +80,7 @@ app: FastAPI = FastAPI( redoc_url=None, docs_url=None, lifespan=lifespan, - title='Bitforce. Users Service', + title='Elcsa. Users Service', version='1.0.0', description='', license_info={ @@ -147,3 +147,10 @@ async def ping() -> dict[str, str]: 'message': 'pong', 'status': 'ok', } + + +@app.get('/health') +async def health() -> dict[str, str]: + return { + 'status': 'ok', + }