From: Tom Hughes Date: Thu, 26 Jul 2007 14:24:08 +0000 (+0000) Subject: Make the API consistent about whether object names are plural in X-Git-Tag: live~8316 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/d52e391a0db2e552899cd8fcbf62746d0f7cdc6c Make the API consistent about whether object names are plural in search calls. --- diff --git a/config/routes.rb b/config/routes.rb index e8113bd51..7de1f8b42 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -30,8 +30,8 @@ ActionController::Routing::Routes.draw do |map| map.connect "api/#{API_VERSION}/trackpoints", :controller => 'api', :action => 'trackpoints' map.connect "api/#{API_VERSION}/search", :controller => 'search', :action => 'search_all' - map.connect "api/#{API_VERSION}/way/search", :controller => 'search', :action => 'search_ways' - map.connect "api/#{API_VERSION}/segment/search", :controller => 'search', :action => 'search_segments' + map.connect "api/#{API_VERSION}/ways/search", :controller => 'search', :action => 'search_ways' + map.connect "api/#{API_VERSION}/segments/search", :controller => 'search', :action => 'search_segments' map.connect "api/#{API_VERSION}/nodes/search", :controller => 'search', :action => 'search_nodes' map.connect "api/#{API_VERSION}/user/details", :controller => 'user', :action => 'api_details'