summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-02-05 12:38:10 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-02-11 10:29:14 +0100
commit14f928b73005300f419adb839cfd7bb06435abb8 (patch)
treebd5dcb3ef3fe7721faaeef83a1ad83dd2a63a2dd /config
parent01a406f5b02a7c8f5133012931b56696c3d21fe8 (diff)
downloadgitlab-ce-14f928b73005300f419adb839cfd7bb06435abb8.tar.gz
Add CI status badge implementation to commit controller
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 3f6561a1fe0..30e42e197f4 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -493,6 +493,13 @@ Rails.application.routes.draw do
constraints: { id: /(?:[^.]|\.(?!atom$))+/, format: /atom/ },
as: :commits
)
+
+ get(
+ '/status/*id/badge',
+ to: 'commit#status',
+ constraints: { format: /png/ },
+ as: :commit_status
+ )
end
resource :avatar, only: [:show, :destroy]