From 7b840c8483e2fe17a6c04474323cfb57c3c8a7d3 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Thu, 11 Aug 2016 13:58:57 +0200 Subject: Add coverage report badge metadata class --- config/routes.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'config') 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 -- cgit v1.2.1