X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/15ff7b9843481dc12a3e1e774c26b1a72dcb7e4b..a5e8b4cb88c9e933955cfd6beea01fb14ffe13f5:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index 435cff9eb..59c5b6803 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -110,6 +110,7 @@ OpenStreetMap::Application.routes.draw do match '/browse/relation/:id/history' => 'browse#relation_history', :via => :get, :id => /\d+/ match '/browse/changeset/:id' => 'browse#changeset', :via => :get, :as => :changeset, :id => /\d+/ match '/browse/note/:id' => 'browse#note', :via => :get, :id => /\d+/, :as => "browse_note" + match '/new_note' => 'browse#new_note', :via => :get match '/user/:display_name/edits' => 'changeset#list', :via => :get match '/user/:display_name/edits/feed' => 'changeset#feed', :via => :get, :defaults => { :format => :atom } match '/user/:display_name/notes' => 'notes#mine', :via => :get @@ -181,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 @@ -216,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