aboutsummaryrefslogtreecommitdiff
path: root/cmd/dendrite-media-api-server/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dendrite-media-api-server/main.go')
-rw-r--r--cmd/dendrite-media-api-server/main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/dendrite-media-api-server/main.go b/cmd/dendrite-media-api-server/main.go
index 8fd80d7b..1582a33a 100644
--- a/cmd/dendrite-media-api-server/main.go
+++ b/cmd/dendrite-media-api-server/main.go
@@ -17,6 +17,7 @@ package main
import (
"github.com/matrix-org/dendrite/internal/setup"
"github.com/matrix-org/dendrite/mediaapi"
+ "github.com/matrix-org/gomatrixserverlib"
)
func main() {
@@ -25,8 +26,9 @@ func main() {
defer base.Close() // nolint: errcheck
userAPI := base.UserAPIClient()
+ client := gomatrixserverlib.NewClient()
- mediaapi.AddPublicRoutes(base.PublicAPIMux, base.Cfg, userAPI)
+ mediaapi.AddPublicRoutes(base.PublicAPIMux, base.Cfg, userAPI, client)
base.SetupAndServeHTTP(string(base.Cfg.Bind.MediaAPI), string(base.Cfg.Listen.MediaAPI))