]> git.openstreetmap.org Git - rails.git/blobdiff - config/routes.rb
more testing of the api. Changing the generator so that it is a constant to come...
[rails.git] / config / routes.rb
index db59a28c83ae7eddd14f62c0815e9a0591525925..5b2ca38b9fd5107b2e19b4045093d41e1094c108 100644 (file)
@@ -25,6 +25,8 @@ ActionController::Routing::Routes.draw do |map|
   map.connect "api/#{API_VERSION}/way/:id", :controller => 'way', :action => 'delete', :id => /\d+/, :conditions => { :method => :delete }
   map.connect "api/#{API_VERSION}/ways", :controller => 'way', :action => 'ways', :id => nil
 
+  # FIXME Wouldn't capabilites be better placed somewhere else in this file
+  # and without the #{API_VERSION}, so that clients can always find it?
   map.connect "api/#{API_VERSION}/capabilities", :controller => 'api', :action => 'capabilities'
   map.connect "api/#{API_VERSION}/relation/create", :controller => 'relation', :action => 'create'
   map.connect "api/#{API_VERSION}/relation/:id/relations", :controller => 'relation', :action => 'relations_for_relation', :id => /\d+/