blob: 76b77c2d0df3fcd104f99fa79dfe69e3934f3b8c (
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
|