summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-05-17 19:11:45 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-05-17 19:11:45 +0300
commit9cd8f7b08296d73532c66f06581ff47dab9720a3 (patch)
tree1671523db0c0c2b806c750e31217ae3ee4c35cfa /config
parent2e54ac17c5815814f288a1a9a1b30ba79977699c (diff)
downloadgitlab-ce-9cd8f7b08296d73532c66f06581ff47dab9720a3.tar.gz
New Feature: Git Blame for file
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 1b8f6d3c077..e137ff717e1 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -94,6 +94,14 @@ Gitlab::Application.routes.draw do
:id => /[a-zA-Z.0-9\/_\-]+/,
:path => /.*/
}
+
+ # blame
+ get "blame/:path" => "refs#blame",
+ :as => :blame_file,
+ :constraints => {
+ :id => /[a-zA-Z.0-9\/_\-]+/,
+ :path => /.*/
+ }
end
end