Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-09-19 22:49:08 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-19 19:57:15 +0300
commit52e0c3b565b7b177abbf8ea3bc573651060179a2 (patch)
tree1cd659377de0a28c7dc5afee456a1b9bb9849d7b /config/routes/group.rb
parentd820c090ec85f8118e4cea75bd63d800e812ea25 (diff)
Add CRUD for Group Labels
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