From 2af4508e5e51f4de542b295bb3e9d41143aa37be Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 25 Aug 2023 16:28:56 -0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(main.py):=20add=20health=20end?= =?UTF-8?q?point=20to=20check=20the=20status=20of=20the=20application?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/langflow/main.py b/src/backend/langflow/main.py index a383a2afa..d0d62a804 100644 --- a/src/backend/langflow/main.py +++ b/src/backend/langflow/main.py @@ -31,6 +31,10 @@ def create_app(): allow_headers=["*"], ) + @app.get("/health") + def health(): + return {"status": "ok"} + app.include_router(router) app.on_event("startup")(initialize_services)