debian-mirror-gitlab/config/routes/sidekiq.rb
2016-11-03 12:29:30 +05:30

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