Sha256: 231a624b053ad31f39ad1e5c045dec0f5c2d56d3553fd450c783c0049bc1c8bb

Contents?: true

Size: 347 Bytes

Versions: 3

Compression:

Stored size: 347 Bytes

Contents

class CurationConcerns::AuditsController < ApplicationController
  before_action :authenticate_user!
  before_action :has_access?

  def create
    render json: audit_service.audit
  end

  protected

    def audit_service
      file_set = ::FileSet.find(params[:file_set_id])
      CurationConcerns::FileSetAuditService.new(file_set)
    end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sufia-7.0.0.beta3 app/controllers/curation_concerns/audits_controller.rb
sufia-7.0.0.beta2 app/controllers/curation_concerns/audits_controller.rb
sufia-7.0.0.beta1 app/controllers/curation_concerns/audits_controller.rb