aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorZog2018-02-27 08:40:26 +0100
committerJohan Van Ryseghem2018-03-27 10:53:27 +0200
commit6499b988747a5a1dc937f0f66f68785f0d65b79e (patch)
tree3eec69c18436010fc1e17506aacbed9c76ecf1c8 /config/routes.rb
parent25cbe2bfac1de0c6268f8d19f39a8496a88977cd (diff)
downloadchouette-core-6499b988747a5a1dc937f0f66f68785f0d65b79e.tar.bz2
Refs #5871; Limit access to Sidekiq dashboard to authenticated users
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 25105241a..76d6b6dc7 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,5 +1,3 @@
-require 'sidekiq/web'
-
ChouetteIhm::Application.routes.draw do
resource :dashboard
@@ -179,8 +177,10 @@ ChouetteIhm::Application.routes.draw do
end
end
- mount Sidekiq::Web => '/sidekiq'
-
+ authenticate :user do
+ mount Sidekiq::Web => '/sidekiq'
+ end
+
namespace :api do
namespace :v1 do
resources :workbenches, except: [:destroy] do