summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-02-09 13:10:16 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-02-11 10:29:15 +0100
commit28b11963b1613f420aecbee6718d753a6f9733a9 (patch)
tree832caefbcff0e4a7a5fb5ae3e2304e26c24cfc7f /config
parentee1bee5834929f893ec560ddbd3947ef7caaadae (diff)
downloadgitlab-ce-28b11963b1613f420aecbee6718d753a6f9733a9.tar.gz
Move builds badge implementation to new badges controller
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 081ff428406..507bcbc53d7 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -611,8 +611,6 @@ Rails.application.routes.draw do
resources :builds, only: [:index, :show], constraints: { id: /\d+/ } do
collection do
post :cancel_all
- get :badge, path: 'status/*ref/badge',
- constraints: { ref: Gitlab::Regex.git_reference_regex, format: /svg/ }
end
member do
@@ -699,6 +697,12 @@ 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
+ collection do
+ get :build, constraints: { format: /svg/ }
+ end
+ end
end
end
end