API: Update core-go
This commit is contained in:
parent
af6d7ed514
commit
6d1d4764dd
|
@ -3,7 +3,7 @@ module git.sr.ht/~sircmpwn/todo.sr.ht/api
|
||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require (
|
require (
|
||||||
git.sr.ht/~sircmpwn/core-go v0.0.0-20210721073626-39cd24bd091d
|
git.sr.ht/~sircmpwn/core-go v0.0.0-20210825094745-ae61e2431576
|
||||||
git.sr.ht/~sircmpwn/git.sr.ht/api v0.0.0-20201204130708-8d5810145695 // indirect
|
git.sr.ht/~sircmpwn/git.sr.ht/api v0.0.0-20201204130708-8d5810145695 // indirect
|
||||||
git.sr.ht/~sircmpwn/gqlgen v0.0.0-20200522192042-c84d29a1c940 // indirect
|
git.sr.ht/~sircmpwn/gqlgen v0.0.0-20200522192042-c84d29a1c940 // indirect
|
||||||
git.sr.ht/~sircmpwn/meta.sr.ht/api v0.0.0-20201206143838-1de5ca87e423
|
git.sr.ht/~sircmpwn/meta.sr.ht/api v0.0.0-20201206143838-1de5ca87e423
|
||||||
|
|
499
api/go.sum
499
api/go.sum
File diff suppressed because it is too large
Load Diff
|
@ -4,7 +4,6 @@ import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"git.sr.ht/~sircmpwn/core-go/config"
|
"git.sr.ht/~sircmpwn/core-go/config"
|
||||||
"git.sr.ht/~sircmpwn/core-go/email"
|
|
||||||
"git.sr.ht/~sircmpwn/core-go/server"
|
"git.sr.ht/~sircmpwn/core-go/server"
|
||||||
"github.com/99designs/gqlgen/graphql"
|
"github.com/99designs/gqlgen/graphql"
|
||||||
|
|
||||||
|
@ -30,14 +29,9 @@ func main() {
|
||||||
scopes[i] = s.String()
|
scopes[i] = s.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
mail := email.NewQueue()
|
|
||||||
server.NewServer("todo.sr.ht", appConfig).
|
server.NewServer("todo.sr.ht", appConfig).
|
||||||
WithDefaultMiddleware().
|
WithDefaultMiddleware().
|
||||||
WithMiddleware(
|
WithMiddleware(loaders.Middleware).
|
||||||
loaders.Middleware,
|
|
||||||
email.Middleware(mail),
|
|
||||||
).
|
|
||||||
WithSchema(schema, scopes).
|
WithSchema(schema, scopes).
|
||||||
WithQueues(mail).
|
|
||||||
Run()
|
Run()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue