diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-11-15 01:42:44 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-11-17 20:10:13 +0300 |
commit | 198fe1bfc281ed465b94bb0b0a077f607d3d9fc7 (patch) | |
tree | 30cbf8ae9c7c9629f967ed58e343261e4eb13991 /config/routes/group.rb | |
parent | 0aac2e0706cd767993148826d723aa3641cbb2a4 (diff) |
Add toggle_subscription action to Groups::LabelsController
Diffstat (limited to 'config/routes/group.rb')
-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 |