- get "/way/:id" => "browse#way", :id => /\d+/, :as => :way
- get "/way/:id/history" => "browse#way_history", :id => /\d+/
- get "/node/:id" => "browse#node", :id => /\d+/, :as => :node
- get "/node/:id/history" => "browse#node_history", :id => /\d+/
- get "/relation/:id" => "browse#relation", :id => /\d+/, :as => :relation
- get "/relation/:id/history" => "browse#relation_history", :id => /\d+/
- get "/changeset/:id" => "browse#changeset", :as => :changeset, :id => /\d+/
- get "/changeset/:id/comments/feed" => "changeset#comments_feed", :as => :changeset_comments_feed, :id => /\d*/, :defaults => { :format => "rss" }
- get "/note/:id" => "browse#note", :id => /\d+/, :as => "browse_note"
- get "/note/new" => "browse#new_note"
- get "/user/:display_name/history" => "changeset#index"
- get "/user/:display_name/history/feed" => "changeset#feed", :defaults => { :format => :atom }
- get "/user/:display_name/notes" => "notes#mine"
- get "/history/friends" => "changeset#index", :friends => true, :as => "friend_changesets", :defaults => { :format => :html }
- get "/history/nearby" => "changeset#index", :nearby => true, :as => "nearby_changesets", :defaults => { :format => :html }
+ get "/way/:id" => "ways#show", :id => /\d+/, :as => :way
+ get "/way/:id/history" => "old_ways#index", :id => /\d+/, :as => :way_history
+ resources :old_ways, :path => "/way/:id/history", :id => /\d+/, :version => /\d+/, :param => :version, :only => :show
+ get "/node/:id" => "nodes#show", :id => /\d+/, :as => :node
+ get "/node/:id/history" => "old_nodes#index", :id => /\d+/, :as => :node_history
+ resources :old_nodes, :path => "/node/:id/history", :id => /\d+/, :version => /\d+/, :param => :version, :only => :show
+ get "/relation/:id" => "relations#show", :id => /\d+/, :as => :relation
+ get "/relation/:id/history" => "old_relations#index", :id => /\d+/, :as => :relation_history
+ resources :old_relations, :path => "/relation/:id/history", :id => /\d+/, :version => /\d+/, :param => :version, :only => :show
+ resources :changesets, :path => "changeset", :id => /\d+/, :only => :show do
+ match :subscribe, :unsubscribe, :on => :member, :via => [:get, :post]
+ end
+ get "/changeset/:id/comments/feed" => "changeset_comments#index", :as => :changeset_comments_feed, :id => /\d*/, :defaults => { :format => "rss" }
+ resources :notes, :path => "note", :id => /\d+/, :only => [:show, :new]
+
+ get "/user/:display_name/history" => "changesets#index"
+ get "/user/:display_name/history/feed" => "changesets#feed", :defaults => { :format => :atom }
+ get "/user/:display_name/notes" => "notes#index", :as => :user_notes
+ get "/history/friends" => "changesets#index", :friends => true, :as => "friend_changesets", :defaults => { :format => :html }
+ get "/history/nearby" => "changesets#index", :nearby => true, :as => "nearby_changesets", :defaults => { :format => :html }