aboutsummaryrefslogtreecommitdiff
path: root/mediaapi/mediaapi.go
diff options
context:
space:
mode:
Diffstat (limited to 'mediaapi/mediaapi.go')
-rw-r--r--mediaapi/mediaapi.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/mediaapi/mediaapi.go b/mediaapi/mediaapi.go
index 9219ba20..290ef46e 100644
--- a/mediaapi/mediaapi.go
+++ b/mediaapi/mediaapi.go
@@ -26,7 +26,9 @@ import (
// AddPublicRoutes sets up and registers HTTP handlers for the MediaAPI component.
func AddPublicRoutes(
- router *mux.Router, cfg *config.Dendrite, userAPI userapi.UserInternalAPI,
+ router *mux.Router, cfg *config.Dendrite,
+ userAPI userapi.UserInternalAPI,
+ client *gomatrixserverlib.Client,
) {
mediaDB, err := storage.Open(string(cfg.Database.MediaAPI), cfg.DbProperties())
if err != nil {
@@ -34,6 +36,6 @@ func AddPublicRoutes(
}
routing.Setup(
- router, cfg, mediaDB, userAPI, gomatrixserverlib.NewClient(),
+ router, cfg, mediaDB, userAPI, client,
)
}