X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/72dfc2e55e1334660bb0d5e5ad8fb65c50588fd6..240869f37b075706ff1619fd38fbb179c501de1c:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index b7d570980..6cbcb4bc3 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,6 +1,8 @@ ActionController::Routing::Routes.draw do |map| # API + map.connect "api/capabilities", :controller => 'api', :action => 'capabilities' + map.connect "api/#{API_VERSION}/node/create", :controller => 'node', :action => 'create' map.connect "api/#{API_VERSION}/node/:id/ways", :controller => 'way', :action => 'ways_for_node', :id => /\d+/ map.connect "api/#{API_VERSION}/node/:id/relations", :controller => 'relation', :action => 'relations_for_node', :id => /\d+/