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

Method readComments

apps/server/internal/httpserver/server.go:538–546  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

536}
537
538func (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
548func (s *Server) writeComments(w http.ResponseWriter, r *http.Request) {
549 var req struct {

Callers

nothing calls this directly

Calls 4

currentVaultMethod · 0.95
writeErrorFunction · 0.85
writeJSONFunction · 0.85
ReadNoteCommentsMethod · 0.80

Tested by

no test coverage detected