aboutsummaryrefslogtreecommitdiff
path: root/mediaapi/mediaapi.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-06-16 14:29:11 +0100
committerGitHub <noreply@github.com>2020-06-16 14:29:11 +0100
commitfc0e74ae0f02b7bb9d71d739660deef824ddbd33 (patch)
treefd718a25749cc56e08412d565f5f1bf472156eb4 /mediaapi/mediaapi.go
parent9c77022513f400db59409f5b55fc6223d38d6bb8 (diff)
Fix media API for demos and possibly Synapse (#1134)
* Fix media API for demos and possibly Synapse * User API * goimports
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,
)
}