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

5 lines
194 B
Ruby
Raw Normal View History

2017-02-21 17:31:14 -05:00
constraint = lambda { |request| request.env['warden'].authenticate? && request.env['warden'].user.admin? }
constraints constraint do
mount Sidekiq::Web, at: '/admin/sidekiq', as: :sidekiq
end