OpenStreetMap::Application.routes.draw do
# API
namespace :api do
- get "capabilities" => "capabilities#show"
+ get "capabilities" => "capabilities#show" # Deprecated, remove when 0.6 support is removed
+ get "versions" => "versions#show"
end
scope "api/0.6" do
# AMF (ActionScript) API
post "amf/read" => "api/amf#amf_read"
post "amf/write" => "api/amf#amf_write"
- get "swf/trackpoints" => "api/swf#trackpoints"
# Map notes API
resources :notes, :except => [:new, :edit, :update], :constraints => { :id => /\d+/ }, :defaults => { :format => "xml" }, :controller => "api/notes" do