X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4b4c5aac2f6e338fb043cd4d2a031c4bd6ee1b05..b4dbf6233c3785e62af5bd313381f1844e5bbc19:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index d6e28b736..6f152eb47 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -90,7 +90,7 @@ OpenStreetMap::Application.routes.draw do get "swf/trackpoints" => "swf#trackpoints" # Map notes API - resources :notes, :except => [:new, :edit, :update], :constraints => { :id => /\d+/ }, :defaults => { :format => "xml" } do + resources :notes, :except => [:new, :edit, :update], :constraints => { :id => /\d+/ }, :defaults => { :format => "xml" }, :controller => "api/notes" do collection do get "search" get "feed", :defaults => { :format => "rss" } @@ -103,11 +103,11 @@ OpenStreetMap::Application.routes.draw do end end - post "notes/addPOIexec" => "notes#create" - post "notes/closePOIexec" => "notes#close" - post "notes/editPOIexec" => "notes#comment" - get "notes/getGPX" => "notes#index", :format => "gpx" - get "notes/getRSSfeed" => "notes#feed", :format => "rss" + post "notes/addPOIexec" => "api/notes#create" + post "notes/closePOIexec" => "api/notes#close" + post "notes/editPOIexec" => "api/notes#comment" + get "notes/getGPX" => "api/notes#index", :format => "gpx" + get "notes/getRSSfeed" => "api/notes#feed", :format => "rss" end # Data browsing