gitlab-org--gitlab-foss/config/routes/sidekiq.rb
Dmitriy Zaporozhets b9e259dded
Cleanup config/routes.rb even further by extracting more routes into separate files
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-10-05 18:43:47 +03:00

4 lines
195 B
Ruby

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