summaryrefslogtreecommitdiff
path: root/cmd/gotosocial/action/server/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/gotosocial/action/server/server.go')
-rw-r--r--cmd/gotosocial/action/server/server.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/cmd/gotosocial/action/server/server.go b/cmd/gotosocial/action/server/server.go
index edd6fc1a7..8c6cd7afe 100644
--- a/cmd/gotosocial/action/server/server.go
+++ b/cmd/gotosocial/action/server/server.go
@@ -148,6 +148,12 @@ var Start action.GTSAction = func(ctx context.Context) error {
return fmt.Errorf("error creating oidc idp: %s", err)
}
+ // build web module
+ webModule, err := web.New(processor)
+ if err != nil {
+ return fmt.Errorf("error creating web module: %s", err)
+ }
+
// build client api modules
authModule := auth.New(dbService, oauthServer, idp)
accountModule := account.New(processor)
@@ -156,7 +162,6 @@ var Start action.GTSAction = func(ctx context.Context) error {
followRequestsModule := followrequest.New(processor)
webfingerModule := webfinger.New(processor)
nodeInfoModule := nodeinfo.New(processor)
- webBaseModule := web.New(processor)
usersModule := user.New(processor)
timelineModule := timeline.New(processor)
notificationModule := notification.New(processor)
@@ -179,8 +184,10 @@ var Start action.GTSAction = func(ctx context.Context) error {
securityModule,
authModule,
+ // now the web module
+ webModule,
+
// now everything else
- webBaseModule,
accountModule,
instanceModule,
appsModule,