mirror of
https://github.com/mudabbir-ahmad/MAD-Treasure-Hunt.git
synced 2026-10-07 19:00:20 +00:00
Remove dynamic base URL handling; set API base URL to production server
This commit is contained in:
1 parent
d9fc161d26
commit
7b4d62d80c
1 file changed
+1
-9
@@ -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');
|
||||||
|
|||||||
Reference in new issue
Block a user