X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2c16177174d276335babcca5439cd4e97af62ffa..3e9ceb0c3816a1e13c82914d16abf2997b482751:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index db59a28c8..5b2ca38b9 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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+/