From b1a15caf72bf28043db436f2ea7879ba92c6fec3 Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 31 Jul 2025 10:52:15 -0400 Subject: [PATCH] new fix to apli? --- public/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index 119684b..150b894 100644 --- a/public/index.html +++ b/public/index.html @@ -66,8 +66,8 @@ // --- API Calls --- // MODIFIED: This now points to the full server address, including the port. - const API_BASE_URL = `${window.location.protocol}//${window.location.hostname}:3000/api`; - async function apiCall(endpoint, method = 'GET', body = null) { + const API_BASE_URL = '/api'; + async function apiCall(endpoint, method = 'GET', body = null) { const headers = { 'Content-Type': 'application/json' }; if (authToken) headers['Authorization'] = `Bearer ${authToken}`; try {