diff options
author | gitlabhq <m@gitlabhq.com> | 2011-11-16 08:38:53 +0300 |
---|---|---|
committer | gitlabhq <m@gitlabhq.com> | 2011-11-16 08:38:53 +0300 |
commit | af08ed6b66530b8efc68bf45e1f11599e333b826 (patch) | |
tree | 1db2fb4d69f60a7da99ec69e6bdcd1a9eb1fd183 /config | |
parent | f294b8d4c3209689dde00326ca6270afa0b4843e (diff) | |
download | gitlab-ce-af08ed6b66530b8efc68bf45e1f11599e333b826.tar.gz |
refactoring
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/config/routes.rb b/config/routes.rb index 7c239e9f6f6..b474f26edc2 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -30,22 +30,24 @@ Gitlab::Application.routes.draw do resources :projects, :except => [:new, :create, :index], :path => "/" do member do - get "tree" - get "blob" get "team" get "wall" get "graph" + end - # tree viewer - get "tree/:commit_id" => "projects#tree" - get "tree/:commit_id/:path" => "projects#tree", - :as => :tree_file, - :constraints => { - :id => /[a-zA-Z0-9_\-]+/, - :commit_id => /[a-zA-Z0-9]+/, - :path => /.*/ - } + resources :refs, :only => [], :path => "/" do + member do + get "tree" + get "blob" + # tree viewer + get "tree/:path" => "refs#tree", + :as => :tree_file, + :constraints => { + :id => /[a-zA-Z0-9_\-]+/, + :path => /.*/ + } + end end resources :snippets |