summaryrefslogtreecommitdiff
path: root/config/routes/sidekiq.rb
blob: d3e6bc4c2926794e3b728c9ece131c0da395b63e (plain)
1
2
3
4
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