mirror of
https://github.com/docusealco/docuseal.git
synced 2026-06-23 04:10:11 +00:00
14 lines
348 B
Ruby
14 lines
348 B
Ruby
# frozen_string_literal: true
|
|
|
|
class SubmissionsDownloadController < ApplicationController
|
|
skip_before_action :authenticate_user!
|
|
|
|
def index
|
|
submission = Submission.find_by(slug: params[:submission_slug])
|
|
|
|
Submissions::GenerateResultAttachments.call(submission)
|
|
|
|
redirect_to submission.archive.url, allow_other_host: true
|
|
end
|
|
end
|