ArnoChen commited on
Commit
da9b47e
·
1 Parent(s): f5b6ee4
lightrag/api/lightrag_server.py CHANGED
@@ -1455,7 +1455,7 @@ def create_app(args):
1455
  # Webui mount graph_viewer_webui/dist/index.html
1456
  webui_dir = Path(__file__).parent / "graph_viewer_webui" / "dist"
1457
  app.mount(
1458
- "/webui",
1459
  StaticFiles(directory=webui_dir, html=True),
1460
  name="webui_static",
1461
  )
@@ -1463,7 +1463,7 @@ def create_app(args):
1463
  # Serve the static files
1464
  static_dir = Path(__file__).parent / "static"
1465
  static_dir.mkdir(exist_ok=True)
1466
- app.mount("/", StaticFiles(directory=static_dir, html=True), name="static")
1467
 
1468
  return app
1469
 
 
1455
  # Webui mount graph_viewer_webui/dist/index.html
1456
  webui_dir = Path(__file__).parent / "graph_viewer_webui" / "dist"
1457
  app.mount(
1458
+ "/graph-viewer",
1459
  StaticFiles(directory=webui_dir, html=True),
1460
  name="webui_static",
1461
  )
 
1463
  # Serve the static files
1464
  static_dir = Path(__file__).parent / "static"
1465
  static_dir.mkdir(exist_ok=True)
1466
+ app.mount("/webui", StaticFiles(directory=static_dir, html=True), name="static")
1467
 
1468
  return app
1469
 
lightrag/api/static/index.html CHANGED
@@ -98,7 +98,7 @@
98
  </div>
99
  </div>
100
 
101
- <script src="/js/api.js"></script>
102
 
103
  </body>
104
  </html>
 
98
  </div>
99
  </div>
100
 
101
+ <script src="./js/api.js"></script>
102
 
103
  </body>
104
  </html>
lightrag/api/webui_depricated/static/index.html CHANGED
@@ -284,8 +284,8 @@
284
  // Initialize the display document management module
285
  showSection('documents');
286
  </script>
287
- <script src="js/lightrag.js"></script>
288
- <script src="js/graph.js"></script>
289
  <script src="https://d3js.org/d3.v7.min.js"></script>
290
  </body>
291
  </html>
 
284
  // Initialize the display document management module
285
  showSection('documents');
286
  </script>
287
+ <script src="./js/lightrag.js"></script>
288
+ <script src="./js/graph.js"></script>
289
  <script src="https://d3js.org/d3.v7.min.js"></script>
290
  </body>
291
  </html>