X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0be6dd860f1843681e6380fbe69ca71a6eb01ab7..519d402cb2234844f3dfee62cdcb2f3f44d5d618:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index a835dc552..88fa0a551 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -7,7 +7,8 @@ ActionController::Routing::Routes.draw do |map| map.connect "api/#{API_VERSION}/changeset/:id/upload", :controller => 'changeset', :action => 'upload', :id => /\d+/ map.connect "api/#{API_VERSION}/changeset/:id/download", :controller => 'changeset', :action => 'download', :id => /\d+/ map.connect "api/#{API_VERSION}/changeset/:id/include", :controller => 'changeset', :action => 'include', :id => /\d+/ - map.connect "api/#{API_VERSION}/changeset/:id", :controller => 'changeset', :action => 'read', :id => /\d+/ + map.connect "api/#{API_VERSION}/changeset/:id", :controller => 'changeset', :action => 'read', :id => /\d+/, :conditions => { :method => :get } + map.connect "api/#{API_VERSION}/changeset/:id", :controller => 'changeset', :action => 'update', :id => /\d+/, :conditions => { :method => :put } map.connect "api/#{API_VERSION}/changeset/:id/close", :controller => 'changeset', :action => 'close', :id =>/\d+/ map.connect "api/#{API_VERSION}/changesets", :controller => 'changeset', :action => 'query'