BigW Consortium Gitlab

workhorse_request.rb 227 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
module WorkhorseRequest
  extend ActiveSupport::Concern

  included do
    before_action :verify_workhorse_api!
  end

  private

  def verify_workhorse_api!
    Gitlab::Workhorse.verify_api_request!(request.headers)
  end
end