reducing URL definitions
This commit is contained in:
1 parent
4e148f3f75
commit
b9278b63e5
3 files changed
+9
-15
No files matched your search
@@ -524,11 +524,7 @@
|
||||
const graphqlClient = require('graphql-client')
|
||||
|
||||
const usersModuleAPI = graphqlClient({
|
||||
//url: 'http://localhost:4000/graphql'
|
||||
url: 'https://app-api.advancedalgos.net/graphql',
|
||||
//headers: {
|
||||
// Authorization: 'Bearer ' + authToken
|
||||
//}
|
||||
url: window.MASTER_APP_API
|
||||
});
|
||||
|
||||
|
||||
@@ -1017,11 +1013,7 @@
|
||||
const graphqlClient = require('graphql-client')
|
||||
|
||||
const usersModuleAPI = graphqlClient({
|
||||
//url: 'http://localhost:4000/graphql'
|
||||
url: 'https://app-api.advancedalgos.net/graphql',
|
||||
//headers: {
|
||||
// Authorization: 'Bearer ' + authToken
|
||||
//}
|
||||
url: window.MASTER_APP_API
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -9,8 +9,9 @@
|
||||
const isValidOrder = require('./exchangeUtils').isValidOrder;
|
||||
const graphqlClient = require('graphql-client')
|
||||
|
||||
const MASTER_APP_API = 'https://app-api.advancedalgos.net/graphql';
|
||||
|
||||
//const MASTER_APP_API = 'https://app-api.advancedalgos.net/graphql';
|
||||
const MASTER_APP_API = 'http://localhost:4100/graphql';
|
||||
|
||||
let MODULE_NAME = "Exchange API";
|
||||
|
||||
let thisObject = {
|
||||
|
||||
+4
-3
@@ -21,7 +21,8 @@ function newLogin() {
|
||||
container.isDraggeable = false;
|
||||
container.isClickeable = true;
|
||||
|
||||
const MASTER_APP_API = 'https://app-api.advancedalgos.net/graphql';
|
||||
//window.MASTER_APP_API = 'https://app-api.advancedalgos.net/graphql';
|
||||
window.MASTER_APP_API = 'http://localhost:4100/graphql';
|
||||
|
||||
let currentLabel;
|
||||
|
||||
@@ -52,7 +53,7 @@ function newLogin() {
|
||||
|
||||
const apolloClient = new Apollo.lib.ApolloClient({
|
||||
networkInterface: Apollo.lib.createNetworkInterface({
|
||||
uri: MASTER_APP_API,
|
||||
uri: window.MASTER_APP_API,
|
||||
transportBatching: true,
|
||||
}),
|
||||
connectToDevTools: true,
|
||||
@@ -104,7 +105,7 @@ function newLogin() {
|
||||
}
|
||||
|
||||
const networkInterfaceTeams = Apollo.lib.createNetworkInterface({
|
||||
uri: MASTER_APP_API
|
||||
uri: window.MASTER_APP_API
|
||||
});
|
||||
|
||||
networkInterfaceTeams.use([{
|
||||
|
||||
Reference in new issue
Block a user