From aa2873ac3afad6b10c482d83ad07c98c5f4742fd Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Fri, 10 May 2019 18:17:33 +0900 Subject: [PATCH] Updated GraphQL --- go.mod | 4 +++- go.sum | 2 -- main.go | 2 +- pages/apiview/api.pixy | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index c6c268a2..5af8a817 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/aerogo/api v0.1.6 github.com/aerogo/codetree v1.2.2 // indirect github.com/aerogo/crawler v0.2.1 - github.com/aerogo/graphql v0.1.1 + github.com/aerogo/graphql v0.1.2 github.com/aerogo/http v1.0.3 github.com/aerogo/layout v0.1.5 github.com/aerogo/log v0.2.4 @@ -58,4 +58,6 @@ require ( gopkg.in/yaml.v2 v2.2.2 // indirect ) +replace github.com/aerogo/graphql => /home/eduard/projects/aerogo/graphql + exclude github.com/logpacker/PayPal-Go-SDK v2.0.0+incompatible diff --git a/go.sum b/go.sum index 69c9ac0b..540c5b07 100644 --- a/go.sum +++ b/go.sum @@ -43,8 +43,6 @@ github.com/aerogo/csp v0.1.5 h1:4l8AaMWndSb0t/03onf4lc0th2zoaapmtKgysDIznW4= github.com/aerogo/csp v0.1.5/go.mod h1:KNqnTFffuDwIPJxBEFTl3baBx+x3Vw+9kcMfu5APFJA= github.com/aerogo/flow v0.1.2 h1:fZ3V7Bo7jwBjqnM1mWxYbg5O/FlQX2XovzMZU2D+o5M= github.com/aerogo/flow v0.1.2/go.mod h1:xXIb7GY0AKouhbp4/ViCsiOmvvgRGonqPG30d6FnACI= -github.com/aerogo/graphql v0.1.1 h1:+8eGDwjJu1OprjFC7vU69CqemlOu+0LVboKuAgO/rUc= -github.com/aerogo/graphql v0.1.1/go.mod h1:qAPqMXgv4ZUpDTIZzJT/AHDoWq7h6IMnDeaOCw52zyM= github.com/aerogo/http v1.0.0 h1:15a7Px8wGZbmgFqJMR1kBy3fWFkDfMZWexJzxhmFKe4= github.com/aerogo/http v1.0.0/go.mod h1:B1igUmMLpE6KabMpc9reHCJJNUOJ2U/PR9s1fF3TpPQ= github.com/aerogo/http v1.0.1 h1:KTzYarhp5yougurxuAhJKFh3YvZ7R7CfaDVwJv5+xIs= diff --git a/main.go b/main.go index 7e04502b..f3cc8c2b 100644 --- a/main.go +++ b/main.go @@ -61,7 +61,7 @@ func configure(app *aero.Application) *aero.Application { auth.Install(app) // GraphQL - app.Post("/api", graphql.Handler(arn.DB)) + app.Post("/graphql", graphql.Handler(arn.DB)) // Close the database node on shutdown app.OnEnd(arn.Node.Close) diff --git a/pages/apiview/api.pixy b/pages/apiview/api.pixy index c08e4c1c..89006cf8 100644 --- a/pages/apiview/api.pixy +++ b/pages/apiview/api.pixy @@ -9,7 +9,7 @@ component API(types []*autodocs.Type) span https://notify.moe/api li.mountable strong GraphQL: - span https://notify.moe/api + span https://notify.moe/graphql h2.mountable Types table.api-types