mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-05 06:28:07 -06:00
clean up some weirdness in the router (#80)
This commit is contained in:
parent
3568579218
commit
c71e55ecc4
11 changed files with 336 additions and 85 deletions
|
|
@ -67,6 +67,7 @@ var models []interface{} = []interface{}{
|
|||
>smodel.Emoji{},
|
||||
>smodel.Instance{},
|
||||
>smodel.Notification{},
|
||||
>smodel.RouterSession{},
|
||||
&oauth.Token{},
|
||||
&oauth.Client{},
|
||||
}
|
||||
|
|
@ -94,7 +95,7 @@ var Start cliactions.GTSAction = func(ctx context.Context, c *config.Config, log
|
|||
|
||||
federatingDB := federatingdb.New(dbService, c, log)
|
||||
|
||||
router, err := router.New(c, log)
|
||||
router, err := router.New(c, dbService, log)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error creating router: %s", err)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ var Start cliactions.GTSAction = func(ctx context.Context, _ *config.Config, log
|
|||
c := testrig.NewTestConfig()
|
||||
dbService := testrig.NewTestDB()
|
||||
testrig.StandardDBSetup(dbService)
|
||||
router := testrig.NewTestRouter()
|
||||
router := testrig.NewTestRouter(dbService)
|
||||
storageBackend := testrig.NewTestStorage()
|
||||
testrig.StandardStorageSetup(storageBackend, "./testrig/media")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue