--- Listing ---
(w http.ResponseWriter, _ *http.Request)
| 493 | // --- Listing --- |
| 494 | |
| 495 | func (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 | |
| 504 | func (s *Server) listFolders(w http.ResponseWriter, _ *http.Request) { |
| 505 | folders, err := s.currentVault().ListFolders() |
nothing calls this directly
no test coverage detected