summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2016-11-17 18:50:24 +0000
committerSean McGivern <sean@mcgivern.me.uk>2016-11-17 18:50:24 +0000
commit3344e1e8dbcb3e53e388511a661f6769b375b748 (patch)
treef2efc14b3e509d3e9affbc6351967881bc00da8d /config
parent726a414169e6c3219ff4fd410da3efd53fc7f912 (diff)
parent81878170a7a3bd5426f6e1241c6b73d01c8c46a6 (diff)
downloadgitlab-ce-3344e1e8dbcb3e53e388511a661f6769b375b748.tar.gz
Merge branch 'feature/subscribe-to-group-level-labels' into 'master'
Support subscribing to group labels https://gitlab.com/gitlab-org/gitlab-ce/issues/23586 See merge request !7215
Diffstat (limited to 'config')
-rw-r--r--config/routes/group.rb5
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