From 0a4003fb742626bfe3a8693b18e45411be6ab6a7 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Sat, 18 Mar 2023 19:47:27 -0300 Subject: [PATCH] trying to fix to hugging face spaces --- src/frontend/src/controllers/NodesServices/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {