Merge pull request #356 from kievechua/master

Fix broken endpointURL
This commit is contained in:
Hagai Cohen 2017-04-13 17:06:01 +03:00 committed by GitHub
commit dbbd77572b
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
# Changelog
### VNEXT
* Fix graphiql's client to use parameter endpointURL instead of hardcoded.
### v0.7.0

View file

@ -121,7 +121,7 @@ export function renderGraphiQL(data: GraphiQLData): string {
// Defines a GraphQL fetcher using the fetch API.
function graphQLFetcher(graphQLParams) {
return fetch('/graphql', {
return fetch(fetchURL, {
method: 'post',
headers: {
'Accept': 'application/json',