From 565a3aa66edcf367f7d8faaaaa63d6c97046a808 Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Fri, 17 Jan 2020 13:17:38 +0100 Subject: [PATCH] fix: remove trailig slash --- server/index.js | 2 +- utils/graph-client/utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {