From 9312f71f794331b3b956643373a7ee7f9836fb81 Mon Sep 17 00:00:00 2001 From: dev1lfreak Date: Mon, 29 Jun 2026 10:39:45 +0300 Subject: [PATCH] feat: add health check endpoint --- src/main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index c220947..5fb6eb3 100644 --- a/src/main.py +++ b/src/main.py @@ -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