From 4a36141c8a45f938c00e99f769d99d6d6d475981 Mon Sep 17 00:00:00 2001 From: RemDelaporteMathurin Date: Fri, 1 Aug 2025 12:00:48 -0400 Subject: [PATCH] use getApiEndpoint instead of localhost --- src/App.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.jsx b/src/App.jsx index 0e80367f..92dcbb98 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -98,7 +98,7 @@ export default function App() { // Function to fetch default values for a node type const fetchDefaultValues = async (nodeType) => { try { - const response = await fetch(`http://localhost:8000/default-values/${nodeType}`); + const response = await fetch(getApiEndpoint(`/default-values/${nodeType}`)); if (response.ok) { const defaults = await response.json(); return defaults;