X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/11279ebfe90ae64dd9b1e3a6b476f4a8c639f439..2709027882c3f36a1d6a442c2c4b706b54b1edeb:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index 8da9b7238..59b8fba56 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/history", :controller => 'old_node', :action => 'history', :id => nil # TODO is this :id => nil correct? looks like it would throw away essential info - if it does check all these id => nils + map.connect "api/#{API_VERSION}/node/:id/history", :controller => 'old_node', :action => 'history', :id => nil map.connect "api/#{API_VERSION}/node/:id", :controller => 'node', :action => 'rest', :id => nil map.connect "api/#{API_VERSION}/nodes", :controller => 'node', :action => 'nodes', :id => nil @@ -44,6 +44,10 @@ ActionController::Routing::Routes.draw do |map| map.connect '/traces/tag/:tag', :controller => 'trace', :action => 'list', :id => nil map.connect '/traces/tag/:tag/page/:page', :controller => 'trace', :action => 'list', :id => nil + # test pages + map.connect '/test/populate/:table/:from/:count', :controller => 'test', :action => 'populate' + map.connect '/test/populate/:table/:count', :controller => 'test', :action => 'populate', :from => 1 + # fall through map.connect ':controller/:action/:id' end