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

Method unarchiveNote

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

Source from the content-addressed store, hash-verified

706}
707
708func (s *Server) unarchiveNote(w http.ResponseWriter, r *http.Request) {
709 var req struct {
710 Path string `json:"path"`
711 }
712 if err := readJSON(r, &req); err != nil {
713 http.Error(w, err.Error(), http.StatusBadRequest)
714 return
715 }
716 meta, err := s.currentVault().UnarchiveNote(req.Path)
717 if err != nil {
718 writeError(w, err)
719 return
720 }
721 writeJSON(w, http.StatusOK, meta)
722}
723
724func (s *Server) duplicateNote(w http.ResponseWriter, r *http.Request) {
725 var req struct {

Callers

nothing calls this directly

Calls 6

currentVaultMethod · 0.95
readJSONFunction · 0.85
writeErrorFunction · 0.85
writeJSONFunction · 0.85
ErrorMethod · 0.80
UnarchiveNoteMethod · 0.80

Tested by

no test coverage detected