Skip to content

Commit c126735

Browse files
authored
Merge pull request #61 from monmaru/fixed-endpoint-embedded-in-template
Fixed the endpoint embedded in the playground's html template
2 parents bece7a6 + 6729ebc commit c126735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphcoolPlayground.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func renderPlayground(w http.ResponseWriter, r *http.Request) {
2424

2525
d := playgroundData{
2626
PlaygroundVersion: graphcoolPlaygroundVersion,
27-
Endpoint: "/graphql",
27+
Endpoint: r.URL.Path,
2828
SubscriptionEndpoint: fmt.Sprintf("ws://%v/subscriptions", r.Host),
2929
SetTitle: true,
3030
}

0 commit comments

Comments
 (0)