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 {