Adding first cut of Redactions support

Redactions support hiding historical versions of elements and
collecting meta-data about that action together.
This commit is contained in:
Matt Amos 2012-03-28 12:37:40 +01:00 committed by Tom Hughes
parent 2063fc98f1
commit 67dd9e4c9d
20 changed files with 312 additions and 13 deletions

View file

@ -16,6 +16,7 @@ OpenStreetMap::Application.routes.draw do
match 'api/0.6/node/:id/ways' => 'way#ways_for_node', :via => :get, :id => /\d+/
match 'api/0.6/node/:id/relations' => 'relation#relations_for_node', :via => :get, :id => /\d+/
match 'api/0.6/node/:id/history' => 'old_node#history', :via => :get, :id => /\d+/
match 'api/0.6/node/:id/:version/redact' => 'old_node#redact', :version => /\d+/, :id => /\d+/
match 'api/0.6/node/:id/:version' => 'old_node#version', :via => :get, :id => /\d+/, :version => /\d+/
match 'api/0.6/node/:id' => 'node#read', :via => :get, :id => /\d+/
match 'api/0.6/node/:id' => 'node#update', :via => :put, :id => /\d+/