diff --git a/AABrowserAPI/TeamSetup.js b/AABrowserAPI/TeamSetup.js index 6683a74ba..26fa7338f 100644 --- a/AABrowserAPI/TeamSetup.js +++ b/AABrowserAPI/TeamSetup.js @@ -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 }); diff --git a/Server/Exchange/ExchangeAPI.js b/Server/Exchange/ExchangeAPI.js index 6cd8a0f80..bdffa2ddb 100644 --- a/Server/Exchange/ExchangeAPI.js +++ b/Server/Exchange/ExchangeAPI.js @@ -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 = { diff --git a/TopSpace/Login.js b/TopSpace/Login.js index 39013d97f..357aa96ef 100644 --- a/TopSpace/Login.js +++ b/TopSpace/Login.js @@ -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([{