Skip to content

Commit

Permalink
Merge pull request #146 from joshprice/patch-1
Browse files Browse the repository at this point in the history
Don't assume server is mounted at `/graphql`
  • Loading branch information
asiandrummer authored Jul 5, 2016
2 parents 5fbae37 + 12e7f04 commit 6f382b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@

// Defines a GraphQL fetcher using the fetch API.
function graphQLFetcher(graphQLParams) {
return fetch(window.location.origin + '/graphql', {
return fetch(window.location.origin + window.location.pathname, {
method: 'post',
headers: {
'Accept': 'application/json',
Expand Down

0 comments on commit 6f382b2

Please sign in to comment.