[#345] remove unneeded constraint
This commit is contained in:
parent
4adae8319b
commit
5a02ed077b
|
@ -357,7 +357,6 @@ Rosa::Application.routes.draw do
|
|||
post '/sections' => 'projects#sections'
|
||||
delete '/remove_user' => 'projects#remove_user', as: :remove_user_project
|
||||
# constraints treeish: /[\w\-\.]+(\/[\w\-\.]+)?/ do
|
||||
constraints treeish: /[\w\-\.]+/ do
|
||||
constraints Rosa::Constraints::Treeish do
|
||||
# Tree
|
||||
get '/' => "git/trees#show", as: :project
|
||||
|
@ -398,7 +397,6 @@ Rosa::Application.routes.draw do
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
scope ':uname' do # project owner profile
|
||||
constraints Rosa::Constraints::Owner.new(User) do
|
||||
|
|
Loading…
Reference in New Issue