From de0b7d22c5a63c7b26df0816edbda0456dba50c0 Mon Sep 17 00:00:00 2001 From: Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 21 Jun 2021 20:43:14 +0200 Subject: add web handler to testrig (#56) --- internal/cliactions/testrig/testrig.go | 3 +++ internal/config/default.go | 1 + 2 files changed, 4 insertions(+) (limited to 'internal') diff --git a/internal/cliactions/testrig/testrig.go b/internal/cliactions/testrig/testrig.go index b62aec085..04832bfc1 100644 --- a/internal/cliactions/testrig/testrig.go +++ b/internal/cliactions/testrig/testrig.go @@ -34,6 +34,7 @@ import ( "github.com/superseriousbusiness/gotosocial/internal/cliactions" "github.com/superseriousbusiness/gotosocial/internal/config" "github.com/superseriousbusiness/gotosocial/internal/gotosocial" + "github.com/superseriousbusiness/gotosocial/internal/web" "github.com/superseriousbusiness/gotosocial/testrig" ) @@ -69,6 +70,7 @@ var Start cliactions.GTSAction = func(ctx context.Context, _ *config.Config, log appsModule := app.New(c, processor, log) followRequestsModule := followrequest.New(c, processor, log) webfingerModule := webfinger.New(c, processor, log) + webBaseModule := web.New(c, processor, log) usersModule := user.New(c, processor, log) timelineModule := timeline.New(c, processor, log) notificationModule := notification.New(c, processor, log) @@ -89,6 +91,7 @@ var Start cliactions.GTSAction = func(ctx context.Context, _ *config.Config, log authModule, // now everything else + webBaseModule, accountModule, instanceModule, appsModule, diff --git a/internal/config/default.go b/internal/config/default.go index 8a53f239e..89360bb26 100644 --- a/internal/config/default.go +++ b/internal/config/default.go @@ -172,6 +172,7 @@ func GetTestDefaults() Defaults { DbDatabase: "postgres", TemplateBaseDir: "./web/template/", + AssetBaseDir: "./web/assets/", AccountsOpenRegistration: true, AccountsRequireApproval: true, -- cgit v1.2.3