Commit f9b89ef8 authored by Valery Sizov's avatar Valery Sizov

Move global boards routes under "-" scope

parent 2fd814a3
...@@ -44,6 +44,19 @@ Rails.application.routes.draw do ...@@ -44,6 +44,19 @@ Rails.application.routes.draw do
get 'readiness' => 'health#readiness' get 'readiness' => 'health#readiness'
resources :metrics, only: [:index] resources :metrics, only: [:index]
mount Peek::Railtie => '/peek' 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 end
# Koding route # Koding route
...@@ -74,19 +87,6 @@ Rails.application.routes.draw do ...@@ -74,19 +87,6 @@ Rails.application.routes.draw do
# Notification settings # Notification settings
resources :notification_settings, only: [:create, :update] 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 :google_api
draw :import draw :import
draw :uploads draw :uploads
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment