From f7e8eb9be3be057eec90db8759c90fd3c1737e47 Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 31 Jul 2025 10:50:55 -0400 Subject: [PATCH] update api_base_url --- public/index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index 648e5c5..119684b 100644 --- a/public/index.html +++ b/public/index.html @@ -66,8 +66,7 @@ // --- API Calls --- // MODIFIED: This now points to the full server address, including the port. - const API_BASE_URL = `http://${window.location.hostname}:3000/api`; - + const API_BASE_URL = `${window.location.protocol}//${window.location.hostname}:3000/api`; async function apiCall(endpoint, method = 'GET', body = null) { const headers = { 'Content-Type': 'application/json' }; if (authToken) headers['Authorization'] = `Bearer ${authToken}`;