]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notes/_note.json.jsonify
Include useful URLs in note responses
[rails.git] / app / views / notes / _note.json.jsonify
index ba9ccd944e663707cec48978b2b180a7ad549e4d..6afb4a555b9e5d0b1de6673563901a5781a597ab 100644 (file)
@@ -7,6 +7,9 @@ end
 
 json.properties do
   json.id note.id
+  json.url note_url(note, :format => params[:format])
+  json.comment_url comment_note_url(note, :format => params[:format])
+  json.close_url close_note_url(note, :format => params[:format])
   json.date_created note.created_at
   json.nearby  note.nearby_place
   json.status note.status