From 6729ebcf2a34c8e640cfdf826f8dc8fe0c0c6859 Mon Sep 17 00:00:00 2001 From: Yoshitomo Minami Date: Wed, 12 Dec 2018 20:27:30 +0900 Subject: [PATCH] Fixed the endpoint embedded in the playground's html template --- graphcoolPlayground.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphcoolPlayground.go b/graphcoolPlayground.go index 4379e3f..43be574 100644 --- a/graphcoolPlayground.go +++ b/graphcoolPlayground.go @@ -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, }