gitlab-org--gitlab-foss/config/routes/sidekiq.rb

5 lines
195 B
Ruby
Raw Normal View History

constraint = lambda { |request| request.env['warden'].authenticate? and request.env['warden'].user.admin? }
constraints constraint do
mount Sidekiq::Web, at: '/admin/sidekiq', as: :sidekiq
end