aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorjpl2017-07-17 14:41:11 +0200
committerjpl2017-07-17 14:41:56 +0200
commit655bd61e19ecf68f5c4b90966d619bde0990aa25 (patch)
tree1872fa52939903ecf3b6fdd8d5b0db8f9206fcaa /config/routes.rb
parent778af76259115843d728a1a4983cabd510ad8c4b (diff)
downloadchouette-core-655bd61e19ecf68f5c4b90966d619bde0990aa25.tar.bz2
Refs #4108: adding workbenches#index
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb
index aa6713857..28c092e6a 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,7 +1,7 @@
require 'sidekiq/web'
ChouetteIhm::Application.routes.draw do
- resources :workbenches, :only => [:show] do
+ resources :workbenches, only: [:show, :index] do
delete :referentials, on: :member, action: :delete_referentials
resources :imports do
get :download, on: :member
@@ -14,7 +14,7 @@ ChouetteIhm::Application.routes.draw do
devise_scope :user do
authenticated :user do
- root :to => 'referentials#index', as: :authenticated_root
+ root :to => 'workbenches#index', as: :authenticated_root
end
unauthenticated :user do
@@ -76,7 +76,7 @@ ChouetteIhm::Application.routes.draw do
get :autocomplete, on: :collection, controller: 'autocomplete_calendars'
end
- resources :referentials do
+ resources :referentials, except: :index do
resources :api_keys
resources :autocomplete_stop_areas, only: [:show, :index] do
get 'around', on: :member
@@ -213,7 +213,8 @@ ChouetteIhm::Application.routes.draw do
end
end
end
- root :to => "referentials#index"
+
+ root :to => "workbenches#index"
get '/help/(*slug)' => 'help#show'