diff --git a/lightrag/api/graph_viewer_webui/src/hooks/useLightragGraph.tsx b/lightrag/api/graph_viewer_webui/src/hooks/useLightragGraph.tsx index e1cca872..a3f7747a 100644 --- a/lightrag/api/graph_viewer_webui/src/hooks/useLightragGraph.tsx +++ b/lightrag/api/graph_viewer_webui/src/hooks/useLightragGraph.tsx @@ -89,7 +89,7 @@ export type NodeType = { export type EdgeType = { label: string } const fetchGraph = async (label: string) => { - const response = await fetch(`http://localhost:9621/graphs?label=${label}`) + const response = await fetch(`/graphs?label=${label}`) const rawData = await response.json() let rawGraph = null