V3Update updates a note
(w http.ResponseWriter, r *http.Request)
| 365 | |
| 366 | // V3Update updates a note |
| 367 | func (n *Notes) V3Update(w http.ResponseWriter, r *http.Request) { |
| 368 | note, err := n.update(r) |
| 369 | if err != nil { |
| 370 | handleJSONError(w, err, "updating note") |
| 371 | return |
| 372 | } |
| 373 | |
| 374 | respondJSON(w, http.StatusOK, updateNoteResp{ |
| 375 | Status: http.StatusOK, |
| 376 | Result: presenters.PresentNote(note), |
| 377 | }) |
| 378 | } |
| 379 | |
| 380 | // IndexOptions is a handler for OPTIONS endpoint for notes |
| 381 | func (n *Notes) IndexOptions(w http.ResponseWriter, r *http.Request) { |
nothing calls this directly
no test coverage detected