Copy the redaction code from nodes to ways

This commit is contained in:
Kai Krueger 2012-03-27 18:55:31 -06:00 committed by Tom Hughes
parent 7d41b926cf
commit 72e59b49fa
10 changed files with 293 additions and 19 deletions

View file

@ -28,6 +28,7 @@ OpenStreetMap::Application.routes.draw do
match 'api/0.6/way/:id/full' => 'way#full', :via => :get, :id => /\d+/
match 'api/0.6/way/:id/relations' => 'relation#relations_for_way', :via => :get, :id => /\d+/
match 'api/0.6/way/:id/:version' => 'old_way#version', :via => :get, :id => /\d+/, :version => /\d+/
match 'api/0.6/way/:id/:version/redact' => 'old_way#redact', :via => :put, :version => /\d+/, :id => /\d+/
match 'api/0.6/way/:id' => 'way#read', :via => :get, :id => /\d+/
match 'api/0.6/way/:id' => 'way#update', :via => :put, :id => /\d+/
match 'api/0.6/way/:id' => 'way#delete', :via => :delete, :id => /\d+/