X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/11cd1c9fc1417f5e6b52991897b29bb94a4288a4..83043d6f1cd85729a3f91e5c73d78a39b8ae7d04:/app/views/api/notes/_note.json.jbuilder?ds=sidebyside diff --git a/app/views/api/notes/_note.json.jbuilder b/app/views/api/notes/_note.json.jbuilder index 34f796880..0884c4426 100644 --- a/app/views/api/notes/_note.json.jbuilder +++ b/app/views/api/notes/_note.json.jbuilder @@ -7,13 +7,13 @@ end json.properties do json.id note.id - json.url note_url(note, :format => params[:format]) + json.url api_note_url(note, :format => params[:format]) if note.closed? - json.reopen_url reopen_note_url(note, :format => params[:format]) + json.reopen_url reopen_api_note_url(note, :format => params[:format]) else - json.comment_url comment_note_url(note, :format => params[:format]) - json.close_url close_note_url(note, :format => params[:format]) + json.comment_url comment_api_note_url(note, :format => params[:format]) + json.close_url close_api_note_url(note, :format => params[:format]) end json.date_created note.created_at.to_s