feat(langflow): add /health endpoint to API
refactor(langflow): remove redundant /health endpoint from main.py
This commit is contained in:
parent
e3f27aaebf
commit
5e7ce9dc7b
2 changed files with 5 additions and 1 deletions
|
|
@ -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"}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue