use relative path for graph API endpoint

This commit is contained in:
ArnoChen
2025-02-10 00:38:04 +08:00
parent 1c7f918d8c
commit 10a0fa1530

View File

@@ -89,7 +89,7 @@ export type NodeType = {
export type EdgeType = { label: string } export type EdgeType = { label: string }
const fetchGraph = async (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() const rawData = await response.json()
let rawGraph = null let rawGraph = null