diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-08-11 13:58:57 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-08-15 14:39:46 +0200 |
commit | 7b840c8483e2fe17a6c04474323cfb57c3c8a7d3 (patch) | |
tree | 5c1ead65acae60d69b24550821b5b88c0271c978 /config | |
parent | cdb0caaf320a67f193a7ab9faac9271a625d8b98 (diff) | |
download | gitlab-ce-7b840c8483e2fe17a6c04474323cfb57c3c8a7d3.tar.gz |
Add coverage report badge metadata class
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 9a98fab15a3..cf6773917cf 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -869,7 +869,10 @@ Rails.application.routes.draw do resources :badges, only: [:index] do collection do scope '*ref', constraints: { ref: Gitlab::Regex.git_reference_regex } do - get :build, constraints: { format: /svg/ } + constraints format: /svg/ do + get :build + get :coverage + end end end end |