gitlab-org--gitlab-foss/config/routes/sidekiq.rb
2017-02-21 16:31:14 -06:00

4 lines
194 B
Ruby

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