diff options
author | Mark Haines <mark.haines@matrix.org> | 2014-12-10 15:46:18 +0000 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2014-12-10 15:46:18 +0000 |
commit | e5275d856ee7a1d7aeccd3ea6ab97b49456d24c9 (patch) | |
tree | 80ad9c576d4f11988ff674d45ed17a7c2cd9fda8 /synapse/media/v1/media_repository.py | |
parent | Thumbnail uploaded and cached images (diff) | |
download | synapse-e5275d856ee7a1d7aeccd3ea6ab97b49456d24c9.tar.xz |
Get the code actually working
Diffstat (limited to 'synapse/media/v1/media_repository.py')
-rw-r--r-- | synapse/media/v1/media_repository.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/media/v1/media_repository.py b/synapse/media/v1/media_repository.py index e0a4cd01ee..2bd29d2288 100644 --- a/synapse/media/v1/media_repository.py +++ b/synapse/media/v1/media_repository.py @@ -15,6 +15,7 @@ from .upload_resource import UploadResource from .download_resource import DownloadResource +from .thumbnail_resource import ThumbnailResource from .filepath import MediaFilePaths from twisted.web.resource import Resource @@ -64,3 +65,4 @@ class MediaRepositoryResource(Resource): filepaths = MediaFilePaths(hs.config.media_store_path) self.putChild("upload", UploadResource(hs, filepaths)) self.putChild("download", DownloadResource(hs, filepaths)) + self.putChild("thumbnail", ThumbnailResource(hs, filepaths)) |