Add healthcheck endpoint

This commit is contained in:
Codex
2026-07-01 12:21:47 +03:00
parent 9312f71f79
commit efc5a9cb33
2 changed files with 2 additions and 1 deletions

View File

@@ -283,7 +283,7 @@ class Settings(BaseSettings):
@property @property
def EXCLUDED_PATHS(self) -> List[str]: 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) @lru_cache(maxsize=1)

View File

@@ -207,6 +207,7 @@ async def ping() -> dict[str, str]:
'status': 'ok', 'status': 'ok',
} }
@app.get('/healthcheck')
@app.get('/health') @app.get('/health')
async def health() -> dict[str, str]: async def health() -> dict[str, str]:
return { return {