BigW Consortium Gitlab

sidekiq.rb 194 Bytes
Newer Older
Douwe Maan committed
1
constraint = lambda { |request| request.env['warden'].authenticate? && request.env['warden'].user.admin? }
2 3 4
constraints constraint do
  mount Sidekiq::Web, at: '/admin/sidekiq', as: :sidekiq
end