summary refs log tree commit diff
path: root/synapse/media/v1/media_repository.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-12-04 14:22:31 +0000
committerMark Haines <mark.haines@matrix.org>2014-12-04 14:22:31 +0000
commitc01fd5573c92c7c6da258bac7ff377a91cbebfd1 (patch)
tree7562ac0c1e8b8ac8821c3255cbdbcc8d3fc15031 /synapse/media/v1/media_repository.py
parentFix pyflakes and pep8 warnings (diff)
downloadsynapse-c01fd5573c92c7c6da258bac7ff377a91cbebfd1.tar.xz
Implement download support for media_repository
Diffstat (limited to 'synapse/media/v1/media_repository.py')
-rw-r--r--synapse/media/v1/media_repository.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/media/v1/media_repository.py b/synapse/media/v1/media_repository.py
index afd92874cf..e0a4cd01ee 100644
--- a/synapse/media/v1/media_repository.py
+++ b/synapse/media/v1/media_repository.py
@@ -14,6 +14,7 @@
 # limitations under the License.
 
 from .upload_resource import UploadResource
+from .download_resource import DownloadResource
 from .filepath import MediaFilePaths
 
 from twisted.web.resource import Resource
@@ -62,3 +63,4 @@ class MediaRepositoryResource(Resource):
         Resource.__init__(self)
         filepaths = MediaFilePaths(hs.config.media_store_path)
         self.putChild("upload", UploadResource(hs, filepaths))
+        self.putChild("download", DownloadResource(hs, filepaths))