Add healthcheck endpoint

This commit is contained in:
Codex
2026-07-01 12:21:51 +03:00
parent 11b310d735
commit a7147b951e
3 changed files with 3 additions and 2 deletions

View File

@@ -126,7 +126,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

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