blob: 1aa91ee1189da63734e6b9c89a2a06f5015cc0fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# frozen_string_literal: true
module Projects
module Packages
class PackageFilesController < ApplicationController
include PackagesAccess
include SendFileUpload
feature_category :package_registry
def download
package_file = project.package_files.find(params[:id])
package_file.package.touch_last_downloaded_at
send_upload(package_file.file, attachment: package_file.file_name)
end
end
end
end
|