(w http.ResponseWriter, r *http.Request)
| 536 | } |
| 537 | |
| 538 | func (s *Server) readComments(w http.ResponseWriter, r *http.Request) { |
| 539 | rel := r.URL.Query().Get("path") |
| 540 | comments, err := s.currentVault().ReadNoteComments(rel) |
| 541 | if err != nil { |
| 542 | writeError(w, err) |
| 543 | return |
| 544 | } |
| 545 | writeJSON(w, http.StatusOK, comments) |
| 546 | } |
| 547 | |
| 548 | func (s *Server) writeComments(w http.ResponseWriter, r *http.Request) { |
| 549 | var req struct { |
nothing calls this directly
no test coverage detected