summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-07-14 16:45:46 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-07-14 16:45:46 +0800
commitd7bbee7593ee54a9685c9eded00b121cca3913be (patch)
treeca958768e75674faf1412520c402a5ae5b6d8173 /config/routes.rb
parente01c421b911a46774f8c5be92d383d8da14750c3 (diff)
downloadgitlab-ce-d7bbee7593ee54a9685c9eded00b121cca3913be.tar.gz
Update routes based on feedback from:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5142#note_13058785 And note that job/build_name could contain `/`
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb15
1 files changed, 8 insertions, 7 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 203f679226e..ea6465038df 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -733,16 +733,17 @@ Rails.application.routes.draw do
resources :environments, only: [:index, :show, :new, :create, :destroy]
- resources :artifacts, only: [] do
- collection do
- get :search, path: ':ref_name/:build_name/*path', format: false,
- constraints: { ref_name: /.+/ } # ref could have /
- end
- end
-
resources :builds, only: [:index, :show], constraints: { id: /\d+/ } do
collection do
post :cancel_all
+
+ resources :artifacts, only: [] do
+ collection do
+ get :search, path: ':ref_name/*path',
+ format: false,
+ constraints: { ref_name: /.+/ } # could have /
+ end
+ end
end
member do