MCPcopy Index your code
hub / github.com/ZenNotes/zennotes / readNote

Method readNote

apps/server/internal/httpserver/server.go:528–536  ·  view source on GitHub ↗

--- Notes ---

(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

526// --- Notes ---
527
528func (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
538func (s *Server) readComments(w http.ResponseWriter, r *http.Request) {
539 rel := r.URL.Query().Get("path")

Callers

nothing calls this directly

Calls 4

currentVaultMethod · 0.95
writeErrorFunction · 0.85
writeJSONFunction · 0.85
ReadNoteMethod · 0.80

Tested by

no test coverage detected