diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-10-07 15:24:32 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-10-07 15:24:32 +0200 |
commit | 1e06cabf4a8fa4d4c7acb9898682a5b4b41a9f58 (patch) | |
tree | 1dc00333ddcb0d926bf289312b05ff14a6f81949 /config/routes.rb | |
parent | 3fa2cb93353720e1b70e01ec9e664ebf54d1fc29 (diff) | |
download | gitlab-ce-1e06cabf4a8fa4d4c7acb9898682a5b4b41a9f58.tar.gz |
Remove Ci::Commit and Ci::Build controllerscleanup-ci-pages
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/config/routes.rb b/config/routes.rb index ccce40589e7..4fb779e297c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -28,21 +28,6 @@ Gitlab::Application.routes.draw do end end - resources :commits, only: [] do - member do - get :status - get :cancel - end - end - - resources :builds, only: [] do - member do - get :cancel - get :status - post :retry - end - end - resources :runner_projects, only: [:create, :destroy] resources :events, only: [:index] @@ -486,6 +471,7 @@ Gitlab::Application.routes.draw do member do get :branches get :ci + post :cancel_builds end end @@ -590,7 +576,13 @@ Gitlab::Application.routes.draw do end end - resources :builds, only: [:show] + resources :builds, only: [:show] do + member do + get :cancel + get :status + post :retry + end + end resources :hooks, only: [:index, :create, :destroy], constraints: { id: /\d+/ } do member do |