From: Frederik Ramm Date: Thu, 13 Sep 2007 00:05:13 +0000 (+0000) Subject: fixed ways_for_node call X-Git-Tag: live~8684^2~21 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/dbdb0bec5996d03aebfc986552837fdd1af02b9c fixed ways_for_node call --- diff --git a/config/routes.rb b/config/routes.rb index 9aef0c0d5..d8fb6b95a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -2,7 +2,7 @@ ActionController::Routing::Routes.draw do |map| # API map.connect "api/#{API_VERSION}/node/create", :controller => 'node', :action => 'create' - map.connect "api/#{API_VERSION}/node/:id/nodes", :controller => 'way', :action => 'ways_for_node', :id => /\d+/ + map.connect "api/#{API_VERSION}/node/:id/ways", :controller => 'way', :action => 'ways_for_node', :id => /\d+/ map.connect "api/#{API_VERSION}/node/:id/history", :controller => 'old_node', :action => 'history', :id => /\d+/ map.connect "api/#{API_VERSION}/node/:id", :controller => 'node', :action => 'read', :id => /\d+/, :conditions => { :method => :get } map.connect "api/#{API_VERSION}/node/:id", :controller => 'node', :action => 'update', :id => /\d+/, :conditions => { :method => :put }