fix: remove trailig slash
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ if (config.dev) {
|
|||||||
// Add graphql mocking middleware
|
// Add graphql mocking middleware
|
||||||
//addGraphMiddleware(app);
|
//addGraphMiddleware(app);
|
||||||
|
|
||||||
app.use('/query/', proxy('localhost:6080', {
|
app.use('/query', proxy('localhost:6080', {
|
||||||
proxyReqPathResolver: function (req) {
|
proxyReqPathResolver: function (req) {
|
||||||
return '/query';
|
return '/query';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ const { includeCredentials } = require('./middleware');
|
|||||||
import { onError } from 'apollo-link-error';
|
import { onError } from 'apollo-link-error';
|
||||||
import { default as webAuth} from '../auth';
|
import { default as webAuth} from '../auth';
|
||||||
|
|
||||||
const defaultGraphUri = '/query/';
|
const defaultGraphUri = '/query';
|
||||||
const httpLink = new HttpLink({ uri: defaultGraphUri, fetch: includeCredentials, credentials: 'same-origin' });
|
const httpLink = new HttpLink({ uri: defaultGraphUri, fetch: includeCredentials, credentials: 'same-origin' });
|
||||||
const errorLink = onError(({ graphQLErrors, networkError, operation, forward }) => {
|
const errorLink = onError(({ graphQLErrors, networkError, operation, forward }) => {
|
||||||
if (graphQLErrors) {
|
if (graphQLErrors) {
|
||||||
|
|||||||
Reference in New Issue
Block a user