diff --git a/gql.go b/gql.go index b9ca2c8..369833a 100644 --- a/gql.go +++ b/gql.go @@ -19,77 +19,77 @@ import ( ) func GraphiQLHandler() func(http.ResponseWriter, *http.Request) { - graphiql_string := ` - - - - - GraphiQL - - + return func(w http.ResponseWriter, r * http.Request) { + graphiql_string := fmt.Sprintf(` - - - - - - - - -
Loading...
- - + + + + + + + +
Loading...
+ + - - -` + ); + + + + `, r.RequestURI) - return func(w http.ResponseWriter, r * http.Request) { w.Header().Set("Content-Type", "text/html; charset=utf-8") w.WriteHeader(http.StatusOK) io.WriteString(w, graphiql_string)