summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-08-24 16:02:56 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-08-24 16:02:56 +0800
commite65bc0f175c54d9df66fd4950972c0b0b08d448e (patch)
tree402d04d4b124490d431344e9895b6dc3153727f9 /config
parentbc3493f9474d2557c1c30bf30a61e4cd51ece0f1 (diff)
downloadgitlab-ce-e65bc0f175c54d9df66fd4950972c0b0b08d448e.tar.gz
Path could also have slashes! Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5142#note_14347729
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 606181ff837..879cd61a02f 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -787,9 +787,8 @@ Rails.application.routes.draw do
resources :artifacts, only: [] do
collection do
get :latest_succeeded,
- path: ':ref_name/*path',
- format: false,
- constraints: { ref_name: /.+/ } # could have /
+ path: '*ref_name_and_path',
+ format: false
end
end
end