You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docuseal/app/controllers/api/submitter_consents_controll...

17 lines
384 B

# frozen_string_literal: true
module Api
class SubmitterConsentsController < ApiBaseController
skip_before_action :authenticate_user!
skip_authorization_check
def create
@submitter = Submitter.find_by!(slug: params[:submitter_slug])
SubmissionEvents.create_with_tracking_data(@submitter, 'consent_given', request)
render json: {}
end
end
end