X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1d8e66016c4cdf465d06198cfbbfe76613ed3bfc..0ace75e6639afe8b777ebecaf7ecba16d468a28d:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index 6dd3860dc..681149c2a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -115,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' @@ -169,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_us_postcode' + map.connect '/geocoder/search_uk_postcode', :controller => 'geocoder', :action => 'search_uk_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'