Skip to content

Commit 6729ebc

Browse files
committed
Fixed the endpoint embedded in the playground's html template
1 parent bece7a6 commit 6729ebc

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)