Updated GraphQL
This commit is contained in:
parent
a42c5be666
commit
aa2873ac3a
4
go.mod
4
go.mod
@ -10,7 +10,7 @@ require (
|
|||||||
github.com/aerogo/api v0.1.6
|
github.com/aerogo/api v0.1.6
|
||||||
github.com/aerogo/codetree v1.2.2 // indirect
|
github.com/aerogo/codetree v1.2.2 // indirect
|
||||||
github.com/aerogo/crawler v0.2.1
|
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/http v1.0.3
|
||||||
github.com/aerogo/layout v0.1.5
|
github.com/aerogo/layout v0.1.5
|
||||||
github.com/aerogo/log v0.2.4
|
github.com/aerogo/log v0.2.4
|
||||||
@ -58,4 +58,6 @@ require (
|
|||||||
gopkg.in/yaml.v2 v2.2.2 // indirect
|
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
|
exclude github.com/logpacker/PayPal-Go-SDK v2.0.0+incompatible
|
||||||
|
2
go.sum
2
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/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 h1:fZ3V7Bo7jwBjqnM1mWxYbg5O/FlQX2XovzMZU2D+o5M=
|
||||||
github.com/aerogo/flow v0.1.2/go.mod h1:xXIb7GY0AKouhbp4/ViCsiOmvvgRGonqPG30d6FnACI=
|
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 h1:15a7Px8wGZbmgFqJMR1kBy3fWFkDfMZWexJzxhmFKe4=
|
||||||
github.com/aerogo/http v1.0.0/go.mod h1:B1igUmMLpE6KabMpc9reHCJJNUOJ2U/PR9s1fF3TpPQ=
|
github.com/aerogo/http v1.0.0/go.mod h1:B1igUmMLpE6KabMpc9reHCJJNUOJ2U/PR9s1fF3TpPQ=
|
||||||
github.com/aerogo/http v1.0.1 h1:KTzYarhp5yougurxuAhJKFh3YvZ7R7CfaDVwJv5+xIs=
|
github.com/aerogo/http v1.0.1 h1:KTzYarhp5yougurxuAhJKFh3YvZ7R7CfaDVwJv5+xIs=
|
||||||
|
2
main.go
2
main.go
@ -61,7 +61,7 @@ func configure(app *aero.Application) *aero.Application {
|
|||||||
auth.Install(app)
|
auth.Install(app)
|
||||||
|
|
||||||
// GraphQL
|
// GraphQL
|
||||||
app.Post("/api", graphql.Handler(arn.DB))
|
app.Post("/graphql", graphql.Handler(arn.DB))
|
||||||
|
|
||||||
// Close the database node on shutdown
|
// Close the database node on shutdown
|
||||||
app.OnEnd(arn.Node.Close)
|
app.OnEnd(arn.Node.Close)
|
||||||
|
@ -9,7 +9,7 @@ component API(types []*autodocs.Type)
|
|||||||
span https://notify.moe/api
|
span https://notify.moe/api
|
||||||
li.mountable
|
li.mountable
|
||||||
strong GraphQL:
|
strong GraphQL:
|
||||||
span https://notify.moe/api
|
span https://notify.moe/graphql
|
||||||
|
|
||||||
h2.mountable Types
|
h2.mountable Types
|
||||||
table.api-types
|
table.api-types
|
||||||
|
Loading…
Reference in New Issue
Block a user