]> git.openstreetmap.org Git - rails.git/blobdiff - config/routes.rb
Allow POST requests to the home page so OpenSearch works
[rails.git] / config / routes.rb
index 5952bae52cc4f320deb2eb9869bf9e0aac6dfa5d..c8d9a99ee6158ff62e39756c160367b6c6b8fbbf 100644 (file)
@@ -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