--- Notes ---
(w http.ResponseWriter, r *http.Request)
| 526 | // --- Notes --- |
| 527 | |
| 528 | func (s *Server) readNote(w http.ResponseWriter, r *http.Request) { |
| 529 | rel := r.URL.Query().Get("path") |
| 530 | note, err := s.currentVault().ReadNote(rel) |
| 531 | if err != nil { |
| 532 | writeError(w, err) |
| 533 | return |
| 534 | } |
| 535 | writeJSON(w, http.StatusOK, note) |
| 536 | } |
| 537 | |
| 538 | func (s *Server) readComments(w http.ResponseWriter, r *http.Request) { |
| 539 | rel := r.URL.Query().Get("path") |
nothing calls this directly
no test coverage detected