diff --git a/src/frontend/src/controllers/NodesServices/index.ts b/src/frontend/src/controllers/NodesServices/index.ts index 40e98821c..f1e4aa1e2 100644 --- a/src/frontend/src/controllers/NodesServices/index.ts +++ b/src/frontend/src/controllers/NodesServices/index.ts @@ -4,7 +4,7 @@ import axios, { AxiosResponse } from "axios"; const backendUrl = window.sessionStorage.getItem('port') || "http://localhost:7860"; export async function getAll():Promise> { - return await axios.get(`${backendUrl}/all`); + return await axios.get(`/all`); } export async function sendAll(data:sendAllProps) {