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

Method listNotes

apps/server/internal/httpserver/server.go:495–502  ·  view source on GitHub ↗

--- Listing ---

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

Source from the content-addressed store, hash-verified

493// --- Listing ---
494
495func (s *Server) listNotes(w http.ResponseWriter, _ *http.Request) {
496 notes, err := s.currentVault().ListNotes()
497 if err != nil {
498 writeError(w, err)
499 return
500 }
501 writeJSON(w, http.StatusOK, notes)
502}
503
504func (s *Server) listFolders(w http.ResponseWriter, _ *http.Request) {
505 folders, err := s.currentVault().ListFolders()

Callers

nothing calls this directly

Calls 4

currentVaultMethod · 0.95
writeErrorFunction · 0.85
writeJSONFunction · 0.85
ListNotesMethod · 0.80

Tested by

no test coverage detected