mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-25 03:04:23 +03:00
fix env variable
This commit is contained in:
parent
6b75a3f1dc
commit
f6a447e254
@ -2,7 +2,6 @@ ACTIVITY_WEBSOCKET_URL=
|
||||
BACKEND_URL=
|
||||
ECENCY_BACKEND_API=
|
||||
NEW_IMAGE_API=
|
||||
OLD_IMAGE_API=
|
||||
PIN_KEY=
|
||||
DEFAULT_PIN=
|
||||
SEARCH_API_TOKEN=
|
||||
|
@ -1,11 +1,12 @@
|
||||
import axios from 'axios';
|
||||
import Config from 'react-native-config';
|
||||
import VersionNumber from 'react-native-version-number';
|
||||
|
||||
const api = axios.create({
|
||||
baseURL: Config.ECENCY_BACKEND_API,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'User-Agent': Config.USER_AGENT,
|
||||
'User-Agent': `${Config.USER_AGENT}/${VersionNumber.appVersion}`,
|
||||
},
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user