From 0941c6c64e8466db9f026afd457676216be01494 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Tue, 10 Oct 2023 18:25:30 -0600 Subject: [PATCH] Added gql_signal.go --- gql.go | 13 +++- gql_signal.go | 193 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 203 insertions(+), 3 deletions(-) create mode 100644 gql_signal.go diff --git a/gql.go b/gql.go index 683726c..0fff0be 100644 --- a/gql.go +++ b/gql.go @@ -181,7 +181,7 @@ func ExtractID(p graphql.ResolveParams, name string) (NodeID, error) { return id, nil } -func GraphiQLHandler() func(http.ResponseWriter, *http.Request) { +func GraphiQLHandler(auth_token string) func(http.ResponseWriter, *http.Request) { return func(w http.ResponseWriter, r * http.Request) { graphiql_string := fmt.Sprintf(`