debian-mirror-gitlab/app/controllers/projects/packages/package_files_controller.rb
2020-10-24 23:57:45 +05:30

16 lines
367 B
Ruby

# frozen_string_literal: true
module Projects
module Packages
class PackageFilesController < ApplicationController
include PackagesAccess
include SendFileUpload
def download
package_file = project.package_files.find(params[:id])
send_upload(package_file.file, attachment: package_file.file_name)
end
end
end
end