diff options
Diffstat (limited to 'config/routes/sidekiq.rb')
-rw-r--r-- | config/routes/sidekiq.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/routes/sidekiq.rb b/config/routes/sidekiq.rb new file mode 100644 index 00000000000..d3e6bc4c292 --- /dev/null +++ b/config/routes/sidekiq.rb @@ -0,0 +1,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 |