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:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-04-12 17:16:39 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-04-13 12:03:39 +0300
commite84c155f092600b90be291f0f7bb649811fa53fb (patch)
treecbd5703632b2b92c6d8793a5aabb2a5b14e69d9b /config/routes.rb
parent4d72ca39803615850267d034e9dc59540fe657b7 (diff)
WIP
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 842fbb99843..841b3f26272 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -654,6 +654,13 @@ Rails.application.routes.draw do
resource :variables, only: [:show, :update]
resources :triggers, only: [:index, :create, :destroy]
+ resources :pipelines, only: [:index, :new, :create] do
+ member do
+ post :cancel
+ post :retry
+ end
+ end
+
resources :builds, only: [:index, :show], constraints: { id: /\d+/ } do
collection do
post :cancel_all