Skip to content

Commit

Permalink
Merge pull request #61 from monmaru/fixed-endpoint-embedded-in-template
Browse files Browse the repository at this point in the history
Fixed the endpoint embedded in the playground's html template
  • Loading branch information
chris-ramon authored Dec 12, 2018
2 parents bece7a6 + 6729ebc commit c126735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphcoolPlayground.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func renderPlayground(w http.ResponseWriter, r *http.Request) {

d := playgroundData{
PlaygroundVersion: graphcoolPlaygroundVersion,
Endpoint: "/graphql",
Endpoint: r.URL.Path,
SubscriptionEndpoint: fmt.Sprintf("ws://%v/subscriptions", r.Host),
SetTitle: true,
}
Expand Down

0 comments on commit c126735

Please sign in to comment.