[refs #193] Fix routes regex for wiki compare

This commit is contained in:
konstantin.grabar 2012-02-20 13:56:09 +04:00
parent d9025b093f
commit 2b675c6f84
1 changed files with 2 additions and 1 deletions

View File

@ -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