(w http.ResponseWriter, _ *http.Request)
| 502 | } |
| 503 | |
| 504 | func (s *Server) listFolders(w http.ResponseWriter, _ *http.Request) { |
| 505 | folders, err := s.currentVault().ListFolders() |
| 506 | if err != nil { |
| 507 | writeError(w, err) |
| 508 | return |
| 509 | } |
| 510 | writeJSON(w, http.StatusOK, folders) |
| 511 | } |
| 512 | |
| 513 | func (s *Server) listAssets(w http.ResponseWriter, _ *http.Request) { |
| 514 | assets, err := s.currentVault().ListAssets() |
nothing calls this directly
no test coverage detected