Merge pull request #4

Remove dynamic base URL handling; set API base URL to production server
This commit is contained in:
bobbert authored and GitHub committed 2026-04-06 15:28:32 +01:00
commit da7d5ea48d
1 file changed
+1 -9
+1 -9
View File
@@ -1,12 +1,4 @@
import Constants from 'expo-constants'; export const API_BASE_URL = 'http://api.bobby.ip-ddns.com';
const getBaseUrl = () => {
const host = Constants.expoGoConfig?.debuggerHost;
if (host) return 'http://localhost:3000';
return 'http://api.bobby.ip-ddns.com';
};
export const API_BASE_URL = getBaseUrl();
const API = {}; const API = {};
API.get = (endpoint) => callFetch(endpoint, 'GET'); API.get = (endpoint) => callFetch(endpoint, 'GET');