Move global boards routes under "-" scope
This commit is contained in:
parent
2fd814a328
commit
f9b89ef8aa
1 changed files with 13 additions and 13 deletions
|
@ -44,6 +44,19 @@ Rails.application.routes.draw do
|
|||
get 'readiness' => 'health#readiness'
|
||||
resources :metrics, only: [:index]
|
||||
mount Peek::Railtie => '/peek'
|
||||
|
||||
# Boards resources shared between group and projects
|
||||
resources :boards, only: [] do
|
||||
resources :lists, module: :boards, only: [:index, :create, :update, :destroy] do
|
||||
collection do
|
||||
post :generate
|
||||
end
|
||||
|
||||
resources :issues, only: [:index, :create, :update]
|
||||
end
|
||||
|
||||
resources :issues, module: :boards, only: [:index, :update]
|
||||
end
|
||||
end
|
||||
|
||||
# Koding route
|
||||
|
@ -74,19 +87,6 @@ Rails.application.routes.draw do
|
|||
# Notification settings
|
||||
resources :notification_settings, only: [:create, :update]
|
||||
|
||||
# Boards resources shared between group and projects
|
||||
resources :boards do
|
||||
resources :lists, module: :boards, only: [:index, :create, :update, :destroy] do
|
||||
collection do
|
||||
post :generate
|
||||
end
|
||||
|
||||
resources :issues, only: [:index, :create, :update]
|
||||
end
|
||||
|
||||
resources :issues, module: :boards, only: [:index, :update]
|
||||
end
|
||||
|
||||
draw :google_api
|
||||
draw :import
|
||||
draw :uploads
|
||||
|
|
Loading…
Reference in a new issue