From 09ee9689260c2eb5027f52c7f4d1c4179e23f5c9 Mon Sep 17 00:00:00 2001 From: ArnoChen Date: Sun, 9 Feb 2025 23:28:29 +0800 Subject: [PATCH] fix mount --- lightrag/api/lightrag_server.py | 4 ++-- lightrag/api/static/index.html | 2 +- lightrag/api/webui_depricated/static/index.html | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lightrag/api/lightrag_server.py b/lightrag/api/lightrag_server.py index b7fffd15..53b9858e 100644 --- a/lightrag/api/lightrag_server.py +++ b/lightrag/api/lightrag_server.py @@ -1455,7 +1455,7 @@ def create_app(args): # Webui mount graph_viewer_webui/dist/index.html webui_dir = Path(__file__).parent / "graph_viewer_webui" / "dist" app.mount( - "/webui", + "/graph-viewer", StaticFiles(directory=webui_dir, html=True), name="webui_static", ) @@ -1463,7 +1463,7 @@ def create_app(args): # Serve the static files static_dir = Path(__file__).parent / "static" static_dir.mkdir(exist_ok=True) - app.mount("/", StaticFiles(directory=static_dir, html=True), name="static") + app.mount("/webui", StaticFiles(directory=static_dir, html=True), name="static") return app diff --git a/lightrag/api/static/index.html b/lightrag/api/static/index.html index c9659d5e..75b26c5e 100644 --- a/lightrag/api/static/index.html +++ b/lightrag/api/static/index.html @@ -98,7 +98,7 @@ - + diff --git a/lightrag/api/webui_depricated/static/index.html b/lightrag/api/webui_depricated/static/index.html index f28c8ee9..01c2e0c8 100644 --- a/lightrag/api/webui_depricated/static/index.html +++ b/lightrag/api/webui_depricated/static/index.html @@ -284,8 +284,8 @@ // Initialize the display document management module showSection('documents'); - - + +