feat(langflow): add /health endpoint to API

refactor(langflow): remove redundant /health endpoint from main.py
This commit is contained in:
Gabriel Almeida 2023-05-16 11:41:40 -03:00
commit 5e7ce9dc7b
2 changed files with 5 additions and 1 deletions

View file

@ -40,3 +40,8 @@ async def get_load(predict_request: PredictRequest):
@router.get("/version")
def get_version():
return {"version": version("langflow")}
@router.get("/health")
def get_health():
return {"status": "OK"}

View file

@ -25,7 +25,6 @@ def create_app():
app.include_router(endpoints_router)
app.include_router(validate_router)
app.include_router(chat_router)
app.get("/health")(lambda: {"status": "OK"})
return app