diff --git a/data/gym-tracker.db b/data/gym-tracker.db index 1906df0..5d466f9 100644 Binary files a/data/gym-tracker.db and b/data/gym-tracker.db differ diff --git a/frontend/api.js b/frontend/api.js index e4715ae..dd35b2a 100644 --- a/frontend/api.js +++ b/frontend/api.js @@ -1,6 +1,8 @@ // API client for backend communication -const API_BASE_URL = 'http://localhost:3000/api'; +const API_BASE_URL = window.location.hostname === 'gym.rogi.casa' + ? '/api' + : 'http://localhost:3000/api'; /** * Fetch all gym sessions from the backend