Add healthcheck endpoint

This commit is contained in:
Codex
2026-07-01 12:21:49 +03:00
parent 0bea5bfb5a
commit 4c07cb1f29
2 changed files with 2 additions and 1 deletions

View File

@@ -260,7 +260,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)

View File

@@ -180,6 +180,7 @@ async def custom_redoc_html(_credentials: HTTPBasicCredentials = Depends(verify_
async def ping() -> dict[str, str]:
return {'message': 'pong', 'status': 'ok'}
@app.get('/healthcheck')
@app.get('/health')
async def health() -> dict[str, str]:
return {