Master App Url at global context

This commit is contained in:
Luis Fernando Molina committed 2018-11-07 06:51:14 +01:00
1 parent bf0a7789cf
commit e66d1ec160
2 files changed
+6 -5

No files matched your search

+2 -4
View File
@@ -21,8 +21,6 @@ function newLogin() {
container.isDraggeable = false;
container.isClickeable = true;
const MASTER_APP_API = 'https://app-api.advancedalgos.net/graphql';
let currentLabel;
let userAuthorization;
@@ -52,7 +50,7 @@ function newLogin() {
const apolloClient = new Apollo.lib.ApolloClient({
networkInterface: Apollo.lib.createNetworkInterface({
uri: MASTER_APP_API,
uri: window.canvasApp.graphQL.masterAppApiUrl,
transportBatching: true,
}),
connectToDevTools: true,
@@ -104,7 +102,7 @@ function newLogin() {
}
const networkInterfaceTeams = Apollo.lib.createNetworkInterface({
uri: MASTER_APP_API
uri: window.canvasApp.graphQL.masterAppApiUrl
});
networkInterfaceTeams.use([{
+4 -1
View File
@@ -16,7 +16,10 @@
executingAt: 'Master App',
visible: true,
topMargin: 85,
urlPrefix: 'http://localhost:1337/' /* 'http://localhost:1337/' */ /* 'https://develop.advancedalgos.net/' */
urlPrefix: 'http://localhost:1337/', /* 'http://localhost:1337/' */ /* 'https://develop.advancedalgos.net/' */
graphQL: {
masterAppApiUrl: 'https://app-api.advancedalgos.net/graphql'
}
};
loadAdvancedAlgosPlatform();