X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/77bece20ff81805e97e73d87e8dadabf1db13267..d7eac9b5a8f4cbbeb4ed3d73464993bfd5888935:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index 41dc7cfc5..1ba4eaa24 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -59,8 +59,6 @@ OpenStreetMap::Application.routes.draw do get "trackpoints" => "api/tracepoints#index" - get "changes" => "api/changes#index" - get "user/:id" => "api/users#show", :id => /\d+/, :as => :api_user get "user/details" => "api/users#details" get "user/gpx_files" => "api/users#gpx_files" @@ -79,10 +77,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 @@ -151,8 +145,9 @@ OpenStreetMap::Application.routes.draw do get "/history/feed" => "changesets#feed", :defaults => { :format => :atom } get "/history/comments/feed" => "changeset_comments#index", :as => :changesets_comments_feed, :defaults => { :format => "rss" } get "/export" => "site#export" - match "/login" => "users#login", :via => [:get, :post] - match "/logout" => "users#logout", :via => [:get, :post] + get "/login" => "sessions#new" + post "/login" => "sessions#create" + match "/logout" => "sessions#destroy", :via => [:get, :post] get "/offline" => "site#offline" get "/key" => "site#key" get "/id" => "site#id" @@ -177,7 +172,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