X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5ddab68c11ad7ac85bf3b80e250aa4454292a53c..2b4f8e92c969a5508b73ae7af45811a118fda6b1:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index 9eda73015..59c5b6803 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -182,7 +182,7 @@ OpenStreetMap::Application.routes.draw do match '/traces/mine' => 'trace#mine', :via => :get match '/trace/create' => 'trace#create', :via => [:get, :post] match '/trace/:id/data' => 'trace#data', :via => :get, :id => /\d+/ - match '/trace/:id/edit' => 'trace#edit', :via => [:get, :post, :patch], :id => /\d+/ + match '/trace/:id/edit' => 'trace#edit', :via => [:get, :post, :patch], :id => /\d+/, :as => "trace_edit" match '/trace/:id/delete' => 'trace#delete', :via => :post, :id => /\d+/ # diary pages @@ -217,6 +217,7 @@ OpenStreetMap::Application.routes.draw do # geocoder match '/search' => 'geocoder#search', :via => :get, :as => :search + match '/geocoder/search_latlon' => 'geocoder#search_latlon', :via => :get match '/geocoder/search_us_postcode' => 'geocoder#search_us_postcode', :via => :get match '/geocoder/search_uk_postcode' => 'geocoder#search_uk_postcode', :via => :get match '/geocoder/search_ca_postcode' => 'geocoder#search_ca_postcode', :via => :get