X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/41d6f19a6bed3b1a53f2fba12ca86ffbac1f8f5a..5912a8011b05f36077f0147cdf7403a8e7626216:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index 41dc7cfc5..bd6f3034d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -79,10 +79,6 @@ OpenStreetMap::Application.routes.draw do get "gpx/:id/details" => "api/traces#show", :id => /\d+/ get "gpx/:id/data" => "api/traces#data", :as => :api_trace_data - # AMF (ActionScript) API - post "amf/read" => "api/amf#amf_read" - post "amf/write" => "api/amf#amf_write" - # Map notes API resources :notes, :except => [:new, :edit, :update], :constraints => { :id => /\d+/ }, :defaults => { :format => "xml" }, :controller => "api/notes" do collection do @@ -177,7 +173,7 @@ OpenStreetMap::Application.routes.draw do # omniauth get "/auth/failure" => "users#auth_failure" match "/auth/:provider/callback" => "users#auth_success", :via => [:get, :post], :as => :auth_success - match "/auth/:provider" => "users#auth", :via => [:get, :post], :as => :auth + post "/auth/:provider" => "users#auth", :as => :auth # permalink get "/go/:code" => "site#permalink", :code => /[a-zA-Z0-9_@~]+[=-]*/, :as => :permalink