Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-03 10:26:38 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-03 10:26:38 +0400
commit94390fc7b42e92d4e1d38c8392a2e310a256c4ca (patch)
tree59ea43b8a0de43727b841c2d55b250411b024f48 /config
parent88abe66c27504bcda71fd0ddbeb22d0115b8c09f (diff)
Proper routing. blobs for blobs, raw for send_data
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 61a604b954f..b62d3fe2b0c 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -170,6 +170,7 @@ Gitlab::Application.routes.draw do
end
resources :blob, only: [:show], constraints: {id: /.+/}
+ resources :raw, only: [:show], constraints: {id: /.+/}
resources :tree, only: [:show], constraints: {id: /.+/, format: /(html|js)/ }
resources :edit_tree, only: [:show, :update], constraints: {id: /.+/}, path: 'edit'
resources :commit, only: [:show], constraints: {id: /[[:alnum:]]{6,40}/}