From 33b8f1ed8a4d51ed00cfb3733b35c2e00f5ddb50 Mon Sep 17 00:00:00 2001 From: dev1lfreak Date: Mon, 29 Jun 2026 10:47:05 +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 6807b6d..1b200f6 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='Elcsa Users Service' + title='Elcsa. Pay service Service' ) app.add_exception_handler(ApplicationException, application_exception_handler) @@ -143,3 +143,10 @@ async def ping() -> dict[str, str]: 'message': 'pong', 'status': 'ok', } + +@app.get('/health') +async def health() -> dict[str, str]: + return { + 'status': 'ok', + } +