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

Method tasksFor

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

Source from the content-addressed store, hash-verified

836}
837
838func (s *Server) tasksFor(w http.ResponseWriter, r *http.Request) {
839 rel := r.URL.Query().Get("path")
840 tasks, err := s.currentVault().ScanTasksForPath(rel)
841 if err != nil {
842 writeError(w, err)
843 return
844 }
845 writeJSON(w, http.StatusOK, tasks)
846}
847
848func (s *Server) searchCapabilities(w http.ResponseWriter, _ *http.Request) {
849 writeJSON(w, http.StatusOK, s.currentVault().SearchCapabilities())

Callers

nothing calls this directly

Calls 4

currentVaultMethod · 0.95
writeErrorFunction · 0.85
writeJSONFunction · 0.85
ScanTasksForPathMethod · 0.80

Tested by

no test coverage detected