From 190824e710d546716aa3d86ca1f70efba349464c Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Wed, 11 Oct 2023 17:13:36 -0600 Subject: [PATCH] gql fixes --- gql.go | 153 +++++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 116 insertions(+), 37 deletions(-) diff --git a/gql.go b/gql.go index 86e8a94..46387d4 100644 --- a/gql.go +++ b/gql.go @@ -29,6 +29,7 @@ import ( "math/big" "encoding/pem" "github.com/google/uuid" + "slices" ) func AuthorizationHeader(node *Node) (string, error) { @@ -181,7 +182,7 @@ func ExtractID(p graphql.ResolveParams, name string) (NodeID, error) { return id, nil } -func GraphiQLHandler(auth_token string) func(http.ResponseWriter, *http.Request) { +func GraphiQLHandler() func(http.ResponseWriter, *http.Request) { return func(w http.ResponseWriter, r * http.Request) { graphiql_string := fmt.Sprintf(`