mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 06:05:00 -04:00
Implement download support for media_repository
This commit is contained in:
parent
2f804a7072
commit
c01fd5573c
5 changed files with 278 additions and 12 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue