mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 08:41:46 +08:00
feat(langflow): add /health endpoint to API
refactor(langflow): remove redundant /health endpoint from main.py
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user