summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2017-10-13 11:28:25 +0300
committerValery Sizov <valery@gitlab.com>2017-10-13 11:28:25 +0300
commitf9b89ef8aa672245607f08c4023a3557f12cb33a (patch)
tree38219bc0dd29ff80d7630b82371cc942e94c6c38
parent2fd814a3285697f1803dd18dc7d9b29578757273 (diff)
downloadgitlab-ce-f9b89ef8aa672245607f08c4023a3557f12cb33a.tar.gz
Move global boards routes under "-" scope
-rw-r--r--config/routes.rb26
1 files changed, 13 insertions, 13 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 405bfcc2d8e..fc13dc4865f 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -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