diff options
author | Alexander Randa <randa.alex@gmail.com> | 2017-04-20 11:31:37 +0300 |
---|---|---|
committer | Alexander Randa <randa.alex@gmail.com> | 2017-04-28 14:49:57 +0300 |
commit | c504b88f07f03d381e7b2e22a129413319508413 (patch) | |
tree | a35e54288cea3960fcef4b107879afe7c62dae82 /config/routes | |
parent | ef518df28adc1366d868cb990952e87f60e8b0eb (diff) |
Implement ability to update hooks
Diffstat (limited to 'config/routes')
-rw-r--r-- | config/routes/admin.rb | 6 | ||||
-rw-r--r-- | config/routes/project.rb | 2 |
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 |