summaryrefslogtreecommitdiff
path: root/config/routes/group.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes/group.rb')
-rw-r--r--config/routes/group.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/routes/group.rb b/config/routes/group.rb
index 06b464d79c8..7bb9aa50875 100644
--- a/config/routes/group.rb
+++ b/config/routes/group.rb
@@ -28,5 +28,11 @@ resources :groups, constraints: { id: /[a-zA-Z.0-9_\-]+(?<!\.atom)/ } do
resource :avatar, only: [:destroy]
resources :milestones, constraints: { id: /[^\/]+/ }, only: [:index, :show, :update, :new, :create]
+
+ resources :labels, except: [:show], constraints: { id: /\d+/ } do
+ member do
+ post :toggle_subscription
+ end
+ end
end
end