diff options
Diffstat (limited to 'config/routes/profile.rb')
-rw-r--r-- | config/routes/profile.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/config/routes/profile.rb b/config/routes/profile.rb index 3eda53318e3..b8d4a0c49c2 100644 --- a/config/routes/profile.rb +++ b/config/routes/profile.rb @@ -22,7 +22,14 @@ resource :profile, only: [:show, :update] do end resource :notifications, only: [:show, :update] do - resources :groups, only: :update, constraints: { id: Gitlab::PathRegex.full_namespace_route_regex } + scope(path: 'groups/*id', + id: Gitlab::PathRegex.full_namespace_route_regex, + as: :group, + controller: :groups, + constraints: { format: /(html|json)/ }) do + patch '/', action: :update + put '/', action: :update + end end resource :password, only: [:new, :create, :edit, :update] do |