From 58121cc6ca7b53a69ff2e45cfd45913a1ca955a5 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 24 Aug 2023 17:42:33 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20refactor(main.py):=20remove=20un?= =?UTF-8?q?used=20routers=20from=20the=20app=20to=20improve=20code=20clean?= =?UTF-8?q?liness=20and=20reduce=20unnecessary=20imports?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/main.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/backend/langflow/main.py b/src/backend/langflow/main.py index 7045ec99d..a383a2afa 100644 --- a/src/backend/langflow/main.py +++ b/src/backend/langflow/main.py @@ -6,7 +6,7 @@ from fastapi.responses import FileResponse from fastapi.staticfiles import StaticFiles from langflow.api import router -from langflow.routers import api_key, login, users, health + from langflow.interface.utils import setup_llm_caching from langflow.services.database.utils import initialize_database @@ -31,11 +31,6 @@ def create_app(): allow_headers=["*"], ) - app.include_router(login.router) - app.include_router(api_key.router) - app.include_router(users.router) - app.include_router(health.router) - app.include_router(router) app.on_event("startup")(initialize_services)