]> git.openstreetmap.org Git - rails.git/commitdiff
Merge 7649:7673 from trunk.
authorTom Hughes <tom@compton.nu>
Sun, 4 May 2008 11:26:36 +0000 (11:26 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 4 May 2008 11:26:36 +0000 (11:26 +0000)
1  2 
config/routes.rb

diff --combined config/routes.rb
index 3b7af885da5328b492834555fce2d8e003a27051,06f1583ffc76a8c6359028f5042de29286e2de3f..e4d68f87ad91299dc745961078029f6abe26d338
@@@ -1,8 -1,6 +1,8 @@@
  ActionController::Routing::Routes.draw do |map|
  
    # API
 +  map.connect "api/#{API_VERSION}/changeset/create", :controller => 'changeset', :action => 'create'
 +  
    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+/
@@@ -47,6 -45,7 +47,7 @@@
    map.connect "api/#{API_VERSION}/user/preferences/:preference_key", :controller => 'user_preference', :action => 'read_one', :conditions => { :method => :get }
    map.connect "api/#{API_VERSION}/user/preferences", :controller => 'user_preference', :action => 'update', :conditions => { :method => :put }
    map.connect "api/#{API_VERSION}/user/preferences/:preference_key", :controller => 'user_preference', :action => 'update_one', :conditions => { :method => :put }
+   map.connect "api/#{API_VERSION}/user/preferences/:preference_key", :controller => 'user_preference', :action => 'delete_one', :conditions => { :method => :delete }
    map.connect "api/#{API_VERSION}/user/gpx_files", :controller => 'user', :action => 'api_gpx_files'
   
    map.connect "api/#{API_VERSION}/gpx/create", :controller => 'trace', :action => 'api_create'