diff options
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb index 27188b3b89f..4c1f61e9a83 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,3 +1,5 @@ +require 'sidekiq/web' + Gitlab::Application.routes.draw do # # Search @@ -8,9 +10,10 @@ Gitlab::Application.routes.draw do require 'api' mount Gitlab::API => '/api' - # Optionally, enable Resque here - require 'resque/server' - mount Resque::Server => '/info/resque', as: 'resque' + constraint = lambda { |request| request.env["warden"].authenticate? and request.env['warden'].user.admin? } + constraints constraint do + mount Sidekiq::Web, at: "/admin/workers", as: :sidekiq + end # Enable Grack support mount Grack::Bundle.new({ |