summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-09-19 16:49:08 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-19 14:57:15 -0200
commit52e0c3b565b7b177abbf8ea3bc573651060179a2 (patch)
tree1cd659377de0a28c7dc5afee456a1b9bb9849d7b /config
parentd820c090ec85f8118e4cea75bd63d800e812ea25 (diff)
downloadgitlab-ce-52e0c3b565b7b177abbf8ea3bc573651060179a2.tar.gz
Add CRUD for Group Labels
Diffstat (limited to 'config')
-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