diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-16 01:11:23 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-17 18:58:59 +0300 |
commit | 57737785df21c160234487b25ee8b37289a91803 (patch) | |
tree | c9d8651de5a0c06fe2107c7df65b61d1a9dade5f /config/routes.rb | |
parent | 8e4e294a7cc8725869964cf56842124aec54ca12 (diff) |
Move board related controllers to the `Boards` namespace
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/config/routes.rb b/config/routes.rb index 3b17ed612bf..b74d6fa4464 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -857,14 +857,16 @@ Rails.application.routes.draw do end resource :board, only: [:show] do - resources :issues, only: [:update], controller: :board_issues + scope module: :boards do + resources :issues, only: [:update] - resources :lists, only: [:create, :update, :destroy], controller: :board_lists do - collection do - post :generate - end + resources :lists, only: [:create, :update, :destroy] do + collection do + post :generate + end - resources :issues, only: [:index], controller: :board_issues + resources :issues, only: [:index] + end end end |