[refs #193] Fix routes regex for wiki compare
This commit is contained in:
parent
d9025b093f
commit
2b675c6f84
|
@ -101,7 +101,8 @@ Rosa::Application.routes.draw do
|
||||||
match '_access' => 'wiki#git', :as => :git, :via => :get
|
match '_access' => 'wiki#git', :as => :git, :via => :get
|
||||||
match '_revert/:sha1/:sha2' => 'wiki#revert_wiki', :as => :revert, :via => [:get, :post]
|
match '_revert/:sha1/:sha2' => 'wiki#revert_wiki', :as => :revert, :via => [:get, :post]
|
||||||
match '_compare' => 'wiki#compare_wiki', :as => :compare, :via => :post
|
match '_compare' => 'wiki#compare_wiki', :as => :compare, :via => :post
|
||||||
match '_compare/:versions' => 'wiki#compare_wiki', :versions => /.*/, :as => :compare_versions, :via => :get
|
#match '_compare/:versions' => 'wiki#compare_wiki', :versions => /.*/, :as => :compare_versions, :via => :get
|
||||||
|
match '_compare/:versions' => 'wiki#compare_wiki', :versions => /([a-f0-9\^]{6,40})(\.\.\.[a-f0-9\^]{6,40})/, :as => :compare_versions, :via => :get
|
||||||
post :preview
|
post :preview
|
||||||
get :search
|
get :search
|
||||||
get :pages
|
get :pages
|
||||||
|
|
Loading…
Reference in New Issue