mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-19 20:54:42 -04:00
initial WIP of a tentative preview_url endpoint - incomplete, untested, experimental, etc. just putting it here for safekeeping for now
This commit is contained in:
parent
f92fe15897
commit
7dd0c1730a
5 changed files with 327 additions and 1 deletions
|
@ -17,6 +17,7 @@ from .upload_resource import UploadResource
|
|||
from .download_resource import DownloadResource
|
||||
from .thumbnail_resource import ThumbnailResource
|
||||
from .identicon_resource import IdenticonResource
|
||||
from .preview_url_resource import PreviewUrlResource
|
||||
from .filepath import MediaFilePaths
|
||||
|
||||
from twisted.web.resource import Resource
|
||||
|
@ -78,3 +79,5 @@ class MediaRepositoryResource(Resource):
|
|||
self.putChild("download", DownloadResource(hs, filepaths))
|
||||
self.putChild("thumbnail", ThumbnailResource(hs, filepaths))
|
||||
self.putChild("identicon", IdenticonResource())
|
||||
self.putChild("preview_url", PreviewUrlResource(hs, filepaths))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue