diff --git a/server/index.js b/server/index.js index e71e3bb..a2eda7b 100644 --- a/server/index.js +++ b/server/index.js @@ -23,7 +23,7 @@ if (config.dev) { // Add graphql mocking middleware //addGraphMiddleware(app); -app.use('/query/', proxy('localhost:6080', { +app.use('/query', proxy('localhost:6080', { proxyReqPathResolver: function (req) { return '/query'; } diff --git a/utils/graph-client/utils.js b/utils/graph-client/utils.js index 21e8881..3497add 100644 --- a/utils/graph-client/utils.js +++ b/utils/graph-client/utils.js @@ -5,7 +5,7 @@ const { includeCredentials } = require('./middleware'); import { onError } from 'apollo-link-error'; import { default as webAuth} from '../auth'; -const defaultGraphUri = '/query/'; +const defaultGraphUri = '/query'; const httpLink = new HttpLink({ uri: defaultGraphUri, fetch: includeCredentials, credentials: 'same-origin' }); const errorLink = onError(({ graphQLErrors, networkError, operation, forward }) => { if (graphQLErrors) {