View attachments from a share

This commit is contained in:
eikek
2021-10-06 01:14:30 +02:00
parent 9eb2f9c6fe
commit c62b8526be
5 changed files with 19 additions and 9 deletions

View File

@ -143,6 +143,7 @@ module Api exposing
, setTagsMultiple
, setUnconfirmed
, shareAttachmentPreviewURL
, shareFileURL
, shareItemBasePreviewURL
, startClassifier
, startEmptyTrash
@ -2311,6 +2312,11 @@ shareItemBasePreviewURL itemId =
"/api/v1/share/item/" ++ itemId ++ "/preview?withFallback=true"
shareFileURL : String -> String
shareFileURL attachId =
"/api/v1/share/attachment/" ++ attachId
--- Helper