diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-06-16 14:29:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 14:29:11 +0100 |
commit | fc0e74ae0f02b7bb9d71d739660deef824ddbd33 (patch) | |
tree | fd718a25749cc56e08412d565f5f1bf472156eb4 /mediaapi/mediaapi.go | |
parent | 9c77022513f400db59409f5b55fc6223d38d6bb8 (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.go | 6 |
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, ) } |