Updated GraphQL

This commit is contained in:
Eduard Urbach 2019-05-10 18:17:33 +09:00
parent a42c5be666
commit aa2873ac3a
4 changed files with 5 additions and 5 deletions

4
go.mod
View File

@ -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

2
go.sum
View File

@ -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=

View File

@ -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)

View File

@ -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