fix: remove trailig slash

This commit is contained in:
2020-01-17 13:17:38 +01:00
parent 74e134ee6d
commit 565a3aa66e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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';
}
+1 -1
View File
@@ -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) {