X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/96671cf0c0f014e61ac1eb3f11460376e067f0c2..2ad75d72af79fe03a31e4a9a750604d90b4b9ffa:/config/routes.rb?ds=sidebyside diff --git a/config/routes.rb b/config/routes.rb index 75e05d2ca..b420dcedb 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -39,7 +39,6 @@ OpenStreetMap::Application.routes.draw do put "node/:id" => "nodes#update", :id => /\d+/ delete "node/:id" => "nodes#delete", :id => /\d+/ - put "way/create" => "ways#create" get "way/:id/history" => "old_ways#history", :as => :api_way_history, :id => /\d+/ get "way/:id/full" => "ways#full", :as => :way_full, :id => /\d+/ get "way/:id/relations" => "relations#relations_for_way", :as => :way_relations, :id => /\d+/ @@ -64,7 +63,8 @@ OpenStreetMap::Application.routes.draw do resources :nodes, :only => [:index, :create] put "node/create" => "nodes#create", :as => nil - resources :ways, :only => :index + resources :ways, :only => [:index, :create] + put "way/create" => "ways#create", :as => nil resources :relations, :only => :index