summaryrefslogtreecommitdiff
path: root/config/routes
diff options
context:
space:
mode:
authorAlexander Randa <randa.alex@gmail.com>2017-04-20 08:31:37 +0000
committerAlexander Randa <randa.alex@gmail.com>2017-04-28 11:49:57 +0000
commitc504b88f07f03d381e7b2e22a129413319508413 (patch)
treea35e54288cea3960fcef4b107879afe7c62dae82 /config/routes
parentef518df28adc1366d868cb990952e87f60e8b0eb (diff)
downloadgitlab-ce-c504b88f07f03d381e7b2e22a129413319508413.tar.gz
Implement ability to update hooks
Diffstat (limited to 'config/routes')
-rw-r--r--config/routes/admin.rb6
-rw-r--r--config/routes/project.rb2
2 files changed, 5 insertions, 3 deletions
diff --git a/config/routes/admin.rb b/config/routes/admin.rb
index 52ba10604d4..48993420ed9 100644
--- a/config/routes/admin.rb
+++ b/config/routes/admin.rb
@@ -50,8 +50,10 @@ namespace :admin do
resources :deploy_keys, only: [:index, :new, :create, :destroy]
- resources :hooks, only: [:index, :create, :destroy] do
- get :test
+ resources :hooks, only: [:index, :create, :edit, :update, :destroy] do
+ member do
+ get :test
+ end
end
resources :broadcast_messages, only: [:index, :edit, :create, :update, :destroy] do
diff --git a/config/routes/project.rb b/config/routes/project.rb
index 115ae2324b3..71fc84a7a12 100644
--- a/config/routes/project.rb
+++ b/config/routes/project.rb
@@ -185,7 +185,7 @@ constraints(ProjectUrlConstrainer.new) do
end
end
- resources :hooks, only: [:index, :create, :destroy], constraints: { id: /\d+/ } do
+ resources :hooks, only: [:index, :create, :edit, :update, :destroy], constraints: { id: /\d+/ } do
member do
get :test
end