]> git.openstreetmap.org Git - rails.git/blobdiff - config/routes.rb
Support getting a way, and all the segments and nodes it depends on, via /way/:id...
[rails.git] / config / routes.rb
index 9bb8aadcaeab4d44638147ea7a4b0b3deb87cd96..36cc5df0af06ee39f99347ee2df5d6c6a759fb88 100644 (file)
@@ -13,6 +13,7 @@ ActionController::Routing::Routes.draw do |map|
   
   map.connect "api/#{API_VERSION}/way/create", :controller => 'way', :action => 'create'
   map.connect "api/#{API_VERSION}/way/:id/history", :controller => 'old_way', :action => 'history', :id => nil
+  map.connect "api/#{API_VERSION}/way/:id/full", :controller => 'way', :action => 'full', :id => nil
   map.connect "api/#{API_VERSION}/way/:id", :controller => 'way', :action => 'rest', :id => nil
   map.connect "api/#{API_VERSION}/ways", :controller => 'way', :action => 'ways', :id => nil
 
@@ -72,7 +73,10 @@ ActionController::Routing::Routes.draw do |map|
   map.connect '/test/populate/:table/:from/:count', :controller => 'test', :action => 'populate'
   map.connect '/test/populate/:table/:count', :controller => 'test', :action => 'populate', :from => 1
 
+  # geocoder
+  map.connect 'geocoder/search/', :controller => 'geocoder', :action => 'search'
+  
   # fall through
-   map.connect ':controller/:id/:action'
+   map.connect ':controller/:id/:action'
   map.connect ':controller/:action'
 end