Rename hide_comment and unhide_comment to destroy and restore
This preserves the API endpoints and HTTP methods, which could be changed in the next API version
This commit is contained in:
parent
4b0d56f7e1
commit
04afeeb32f
3 changed files with 20 additions and 20 deletions
|
@ -17,8 +17,8 @@ OpenStreetMap::Application.routes.draw do
|
|||
put "changeset/:id/close" => "changeset#close", :id => /\d+/
|
||||
get "changesets" => "changeset#query"
|
||||
post "changeset/:id/comment" => "changeset_comments#create", :as => :changeset_comment, :id => /\d+/
|
||||
post "changeset/comment/:id/hide" => "changeset_comments#hide_comment", :as => :changeset_comment_hide, :id => /\d+/
|
||||
post "changeset/comment/:id/unhide" => "changeset_comments#unhide_comment", :as => :changeset_comment_unhide, :id => /\d+/
|
||||
post "changeset/comment/:id/hide" => "changeset_comments#destroy", :as => :changeset_comment_hide, :id => /\d+/
|
||||
post "changeset/comment/:id/unhide" => "changeset_comments#restore", :as => :changeset_comment_unhide, :id => /\d+/
|
||||
|
||||
put "node/create" => "node#create"
|
||||
get "node/:id/ways" => "way#ways_for_node", :id => /\d+/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue