fix branch/tag select
This commit is contained in:
parent
f0b86c5f1e
commit
bb35ef2f60
7 changed files with 29 additions and 6 deletions
|
@ -36,15 +36,19 @@ Gitlab::Application.routes.draw do
|
|||
end
|
||||
|
||||
resources :refs, :only => [], :path => "/" do
|
||||
collection do
|
||||
get "switch"
|
||||
end
|
||||
|
||||
member do
|
||||
get "tree"
|
||||
get "tree", :constraints => { :id => /[a-zA-Z.0-9_\-]+/ }
|
||||
get "blob"
|
||||
|
||||
# tree viewer
|
||||
get "tree/:path" => "refs#tree",
|
||||
:as => :tree_file,
|
||||
:constraints => {
|
||||
:id => /[a-zA-Z0-9_\-]+/,
|
||||
:id => /[a-zA-Z.0-9_\-]+/,
|
||||
:path => /.*/
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue