diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-11-14 20:42:44 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-11-17 15:10:13 -0200 |
commit | 198fe1bfc281ed465b94bb0b0a077f607d3d9fc7 (patch) | |
tree | 30cbf8ae9c7c9629f967ed58e343261e4eb13991 /config | |
parent | 0aac2e0706cd767993148826d723aa3641cbb2a4 (diff) | |
download | gitlab-ce-198fe1bfc281ed465b94bb0b0a077f607d3d9fc7.tar.gz |
Add toggle_subscription action to Groups::LabelsController
Diffstat (limited to 'config')
-rw-r--r-- | config/routes/group.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/routes/group.rb b/config/routes/group.rb index 3c392f77ef6..068e0b6e843 100644 --- a/config/routes/group.rb +++ b/config/routes/group.rb @@ -30,7 +30,10 @@ scope(path: 'groups/:group_id', module: :groups, as: :group) do resource :avatar, only: [:destroy] resources :milestones, constraints: { id: /[^\/]+/ }, only: [:index, :show, :update, :new, :create] - resources :labels, except: [:show], constraints: { id: /\d+/ } + + resources :labels, except: [:show], constraints: { id: /\d+/ } do + post :toggle_subscription, on: :member + end end # Must be last route in this file |