add web handler to testrig

This commit is contained in:
tsmethurst 2021-06-21 20:40:56 +02:00
parent f9bc305aca
commit 38912f5d07
3 changed files with 5 additions and 1 deletions

2
go.mod
View file

@ -15,7 +15,7 @@ require (
github.com/dsoprea/go-utility v0.0.0-20200717064901-2fccff4aa15e // indirect github.com/dsoprea/go-utility v0.0.0-20200717064901-2fccff4aa15e // indirect
github.com/gin-contrib/cors v1.3.1 github.com/gin-contrib/cors v1.3.1
github.com/gin-contrib/sessions v0.0.3 github.com/gin-contrib/sessions v0.0.3
github.com/gin-contrib/static v0.0.1 // indirect github.com/gin-contrib/static v0.0.1
github.com/gin-gonic/gin v1.7.2 github.com/gin-gonic/gin v1.7.2
github.com/go-errors/errors v1.4.0 // indirect github.com/go-errors/errors v1.4.0 // indirect
github.com/go-fed/activity v1.0.1-0.20210426194615-e0de0863dcc1 github.com/go-fed/activity v1.0.1-0.20210426194615-e0de0863dcc1

View file

@ -34,6 +34,7 @@
"github.com/superseriousbusiness/gotosocial/internal/cliactions" "github.com/superseriousbusiness/gotosocial/internal/cliactions"
"github.com/superseriousbusiness/gotosocial/internal/config" "github.com/superseriousbusiness/gotosocial/internal/config"
"github.com/superseriousbusiness/gotosocial/internal/gotosocial" "github.com/superseriousbusiness/gotosocial/internal/gotosocial"
"github.com/superseriousbusiness/gotosocial/internal/web"
"github.com/superseriousbusiness/gotosocial/testrig" "github.com/superseriousbusiness/gotosocial/testrig"
) )
@ -69,6 +70,7 @@
appsModule := app.New(c, processor, log) appsModule := app.New(c, processor, log)
followRequestsModule := followrequest.New(c, processor, log) followRequestsModule := followrequest.New(c, processor, log)
webfingerModule := webfinger.New(c, processor, log) webfingerModule := webfinger.New(c, processor, log)
webBaseModule := web.New(c, processor, log)
usersModule := user.New(c, processor, log) usersModule := user.New(c, processor, log)
timelineModule := timeline.New(c, processor, log) timelineModule := timeline.New(c, processor, log)
notificationModule := notification.New(c, processor, log) notificationModule := notification.New(c, processor, log)
@ -89,6 +91,7 @@
authModule, authModule,
// now everything else // now everything else
webBaseModule,
accountModule, accountModule,
instanceModule, instanceModule,
appsModule, appsModule,

View file

@ -172,6 +172,7 @@ func GetTestDefaults() Defaults {
DbDatabase: "postgres", DbDatabase: "postgres",
TemplateBaseDir: "./web/template/", TemplateBaseDir: "./web/template/",
AssetBaseDir: "./web/assets/",
AccountsOpenRegistration: true, AccountsOpenRegistration: true,
AccountsRequireApproval: true, AccountsRequireApproval: true,