debian-mirror-gitlab/config/routes/sidekiq.rb

5 lines
194 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
constraint = lambda { |request| request.env['warden'].authenticate? && request.env['warden'].user.admin? }
2016-11-03 12:29:30 +05:30
constraints constraint do
mount Sidekiq::Web, at: '/admin/sidekiq', as: :sidekiq
end