diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/config/routes.rb b/config/routes.rb index 459158dcb61..dd70ad2fa0d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -215,11 +215,7 @@ Gitlab::Application.routes.draw do scope module: :dashboard do resources :milestones, only: [:index, :show] - resources :groups, only: [:index] do - member do - delete :leave - end - end + resources :groups, only: [:index] resources :projects, only: [] do collection do @@ -241,6 +237,7 @@ Gitlab::Application.routes.draw do scope module: :groups do resources :group_members, only: [:index, :create, :update, :destroy] do + delete :leave, on: :collection end resource :avatar, only: [:destroy] |