[#42160] inserted new download endpoint from NC

pull/10834/head
Eric Schubert 2 years ago
parent 965c305927
commit e69dd0d5b1
No known key found for this signature in database
GPG Key ID: 1D346C019BD4BAA2
  1. 2
      frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.html
  2. 2
      modules/storages/lib/api/v3/file_links/storage_url_helper.rb

@ -34,7 +34,7 @@
[title]="text.title.downloadFileLink"
[href]="fileLink._links.staticOriginDownload.href"
>
<span class="spot-icon spot-icon_download"></span>
<span class="spot-icon spot-icon_download-arrow"></span>
</a>
<a
class="spot-link"

@ -57,7 +57,7 @@ module API::V3::FileLinks::StorageUrlHelper
return ServiceResult.failure(result: I18n.t('http.response.unexpected'))
end
url = "#{storage.host}/apps/integration_openproject/direct?token=#{token}&fileName=#{file_link.origin_name}"
url = "#{storage.host}/apps/integration_openproject/direct/#{token}/#{file_link.origin_name}"
ServiceResult.success(result: url)
end

Loading…
Cancel
Save