Allow POST requests to the home page so OpenSearch works
This commit is contained in:
parent
05aa7f377e
commit
21855aa355
2 changed files with 5 additions and 1 deletions
|
@ -92,7 +92,7 @@ OpenStreetMap::Application.routes.draw do
|
|||
match '/browse' => 'changeset#list', :via => :get
|
||||
|
||||
# web site
|
||||
root :to => 'site#index', :via => :get
|
||||
root :to => 'site#index', :via => [:get, :post]
|
||||
match '/edit' => 'site#edit', :via => :get
|
||||
match '/copyright/:copyright_locale' => 'site#copyright', :via => :get
|
||||
match '/copyright' => 'site#copyright', :via => :get
|
||||
|
|
|
@ -10,6 +10,10 @@ class SiteControllerTest < ActionController::TestCase
|
|||
{ :path => "/", :method => :get },
|
||||
{ :controller => "site", :action => "index" }
|
||||
)
|
||||
assert_routing(
|
||||
{ :path => "/", :method => :post },
|
||||
{ :controller => "site", :action => "index" }
|
||||
)
|
||||
assert_recognizes(
|
||||
{ :controller => "site", :action => "index" },
|
||||
{ :path => "/index.html", :method => :get }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue