template/routes.rb in maestrano-connector-rails-0.3.13 vs template/routes.rb in maestrano-connector-rails-0.4.0
- old
+ new
@@ -8,6 +8,13 @@
put 'home/update' => 'home#update'
post 'home/synchronize' => 'home#synchronize'
get 'synchronizations/index' => 'synchronizations#index'
get 'shared_entities/index' => 'shared_entities#index'
+
+ # Sidekiq Admin
+ require 'sidekiq/web'
+ Sidekiq::Web.use Rack::Auth::Basic do |username, password|
+ username == ENV['SIDEKIQ_USERNAME'] && password == ENV['SIDEKIQ_PASSWORD']
+ end
+ mount Sidekiq::Web => '/sidekiq'
end
\ No newline at end of file