X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/8bc8e537b273e8e260a12f598d77dc4135f9d32c..09c1098760f5d64c0fd0b8b9ee6d51f78a276e59:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index 8ca792a61..d60b52b0b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -76,16 +76,12 @@ ActionController::Routing::Routes.draw do |map| map.connect '/browse', :controller => 'changeset', :action => 'list' map.connect '/browse/start', :controller => 'browse', :action => 'start' map.connect '/browse/way/:id', :controller => 'browse', :action => 'way', :id => /\d+/ - map.connect '/browse/way/:id/map', :controller => 'browse', :action => 'way_map', :id => /\d+/ map.connect '/browse/way/:id/history', :controller => 'browse', :action => 'way_history', :id => /\d+/ map.connect '/browse/node/:id', :controller => 'browse', :action => 'node', :id => /\d+/ - map.connect '/browse/node/:id/map', :controller => 'browse', :action => 'node_map', :id => /\d+/ map.connect '/browse/node/:id/history', :controller => 'browse', :action => 'node_history', :id => /\d+/ map.connect '/browse/relation/:id', :controller => 'browse', :action => 'relation', :id => /\d+/ - map.connect '/browse/relation/:id/map', :controller => 'browse', :action => 'relation_map', :id => /\d+/ map.connect '/browse/relation/:id/history', :controller => 'browse', :action => 'relation_history', :id => /\d+/ map.connect '/browse/changeset/:id', :controller => 'browse', :action => 'changeset', :id => /\d+/ - map.connect '/browse/changeset/:id/map', :controller => 'browse', :action => 'changeset_map', :id => /\d+/ map.connect '/browse/changesets', :controller => 'changeset', :action => 'list' # web site @@ -119,7 +115,7 @@ ActionController::Routing::Routes.draw do |map| map.connect '/forgot-password.html', :controller => 'user', :action => 'lost_password' # permalink - map.connect '/go/:code', :controller => 'site', :action => 'permalink', :code => /[a-zA-Z0-9_@]+=*/ + map.connect '/go/:code', :controller => 'site', :action => 'permalink', :code => /[a-zA-Z0-9_@]+[=-]*/ # traces map.connect '/traces', :controller => 'trace', :action => 'list' @@ -173,7 +169,15 @@ ActionController::Routing::Routes.draw do |map| # geocoder map.connect '/geocoder/search', :controller => 'geocoder', :action => 'search' + map.connect '/geocoder/search_latlon', :controller => 'geocoder', :action => 'search_latlon' + map.connect '/geocoder/search_us_postcode', :controller => 'geocoder', :action => 'search_uk_postcode' + map.connect '/geocoder/search_uk_postcode', :controller => 'geocoder', :action => 'search_us_postcode' + map.connect '/geocoder/search_ca_postcode', :controller => 'geocoder', :action => 'search_ca_postcode' + map.connect '/geocoder/search_osm_namefinder', :controller => 'geocoder', :action => 'search_osm_namefinder' + map.connect '/geocoder/search_geonames', :controller => 'geocoder', :action => 'search_geonames' map.connect '/geocoder/description', :controller => 'geocoder', :action => 'description' + map.connect '/geocoder/description_osm_namefinder', :controller => 'geocoder', :action => 'description_osm_namefinder' + map.connect '/geocoder/description_geonames', :controller => 'geocoder', :action => 'description_geonames' # export map.connect '/export/start', :controller => 'export', :action => 'start'