(w http.ResponseWriter, r *http.Request)
| 836 | } |
| 837 | |
| 838 | func (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 | |
| 848 | func (s *Server) searchCapabilities(w http.ResponseWriter, _ *http.Request) { |
| 849 | writeJSON(w, http.StatusOK, s.currentVault().SearchCapabilities()) |
nothing calls this directly
no test coverage detected