Add healthcheck endpoint
This commit is contained in:
@@ -382,7 +382,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)
|
||||
|
||||
@@ -164,6 +164,7 @@ async def ping() -> dict[str, str]:
|
||||
'status': 'ok',
|
||||
}
|
||||
|
||||
@app.get('/healthcheck')
|
||||
@app.get('/health')
|
||||
async def health() -> dict[str, str]:
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user