debian-mirror-gitlab/app/controllers/concerns/workhorse_request.rb
2018-12-05 23:21:45 +05:30

15 lines
258 B
Ruby

# frozen_string_literal: true
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