Welcome to mirror list, hosted at ThFree Co, Russian Federation.

workhorse_request.rb « concerns « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 43c0f1b173c9d39b2867c6e2d477250942f59916 (plain)
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