]> git.openstreetmap.org Git - rails.git/commitdiff
Adding a versionless capabilities to head, so that editors can use it now, prior...
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Fri, 3 Apr 2009 11:12:11 +0000 (11:12 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Fri, 3 Apr 2009 11:12:11 +0000 (11:12 +0000)
config/routes.rb

index b7d570980de7876f3f344848e215527a289e74b2..6cbcb4bc328e7e8774f3e8a7a560ea72d8673577 100644 (file)
@@ -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+/