blob: 0fa23f2b3d0be8fb47c95bc584e53f5746f49efa (
plain)
1
2
3
4
|
constraint = lambda { |request| request.env['warden'].authenticate? && request.env['warden'].user.admin? }
constraints constraint do
mount Sidekiq::Web, at: '/admin/sidekiq', as: :sidekiq
end
|