fix hardcoded backend url
This commit is contained in:
Binary file not shown.
@@ -1,6 +1,8 @@
|
|||||||
// API client for backend communication
|
// 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
|
* Fetch all gym sessions from the backend
|
||||||
|
|||||||
Reference in New Issue
Block a user