chore: change path to GQL-API
This commit is contained in:
@@ -18,14 +18,6 @@ server {
|
||||
return 200 'Ok';
|
||||
}
|
||||
|
||||
location /graph/ {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_pass http://dancefinder;
|
||||
}
|
||||
|
||||
error_log /dev/stdout info;
|
||||
|
||||
# redirect server error pages to the static page /50x.html
|
||||
|
||||
+2
-2
@@ -23,9 +23,9 @@ if (config.dev) {
|
||||
// Add graphql mocking middleware
|
||||
//addGraphMiddleware(app);
|
||||
|
||||
app.use('/graph/', proxy('localhost:8081', {
|
||||
app.use('/query/', proxy('localhost:6080', {
|
||||
proxyReqPathResolver: function (req) {
|
||||
return '/graph/';
|
||||
return '/query';
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
@@ -5,7 +5,7 @@ const { includeCredentials } = require('./middleware');
|
||||
import { onError } from 'apollo-link-error';
|
||||
import { default as webAuth} from '../auth';
|
||||
|
||||
const defaultGraphUri = '/graph/';
|
||||
const defaultGraphUri = '/query/';
|
||||
const httpLink = new HttpLink({ uri: defaultGraphUri, fetch: includeCredentials, credentials: 'same-origin' });
|
||||
const errorLink = onError(({ graphQLErrors, networkError, operation, forward }) => {
|
||||
if (graphQLErrors) {
|
||||
|
||||
Reference in New Issue
Block a user