From 240869f37b075706ff1619fd38fbb179c501de1c Mon Sep 17 00:00:00 2001 From: Shaun McDonald Date: Fri, 3 Apr 2009 11:12:11 +0000 Subject: [PATCH 1/1] Adding a versionless capabilities to head, so that editors can use it now, prior to the 0.6 changeover. --- config/routes.rb | 2 ++ 1 file changed, 2 insertions(+) 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+/ -- 2.45.1