From 67b65cbdafcdfc204bfd0d80c639e313f152e254 Mon Sep 17 00:00:00 2001 From: Codex Date: Wed, 1 Jul 2026 12:21:48 +0300 Subject: [PATCH] Add healthcheck endpoint --- src/infrastructure/config/settings.py | 2 +- src/main.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/infrastructure/config/settings.py b/src/infrastructure/config/settings.py index ba5810d..1d5ca0b 100644 --- a/src/infrastructure/config/settings.py +++ b/src/infrastructure/config/settings.py @@ -239,7 +239,7 @@ class Settings(BaseSettings): @property def EXCLUDED_PATHS(self) -> List[str]: - return ['/docs', '/redoc', '/openapi.json', '/ping', '/health'] + return ['/docs', '/redoc', '/openapi.json', '/ping', '/health', '/healthcheck'] @lru_cache(maxsize=1) diff --git a/src/main.py b/src/main.py index 65d6c58..020b4cf 100644 --- a/src/main.py +++ b/src/main.py @@ -152,6 +152,7 @@ async def ping() -> dict[str, str]: 'status': 'ok', } +@app.get('/healthcheck') @app.get('/health') async def health() -> dict[str, str]: return {