diff options
author | Rémy Coutable <remy@rymai.me> | 2016-04-07 11:40:15 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-04-07 11:40:15 +0300 |
commit | 8eae7b10888826bf3497fc219ee59435288c4cc6 (patch) | |
tree | d7117a7e016e081ee7ec8b2cca8955b7c8fba319 /config | |
parent | d62a3decf945b448a7fcf2fdcf4c523d0b7d2eae (diff) | |
parent | d0bce1470bf0eefc2734c996d99ecf97cb9d54d2 (diff) |
Merge branch 'feature/expose-builds-badge' into 'master'
Expose badges
This MR exposes badge somewhere in visible place.
![expose_badges](/uploads/d2e290d3013d1ef2b1bdeebbbe2c5d8b/expose_badges.png)
Closes #13801
See merge request !3326
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb index e57c04595f6..842fbb99843 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -750,10 +750,11 @@ Rails.application.routes.draw do end resources :runner_projects, only: [:create, :destroy] - resources :badges, only: [], path: 'badges/*ref', - constraints: { ref: Gitlab::Regex.git_reference_regex } do + resources :badges, only: [:index] do collection do - get :build, constraints: { format: /svg/ } + scope '*ref', constraints: { ref: Gitlab::Regex.git_reference_regex } do + get :build, constraints: { format: /svg/ } + end end end end |