(w http.ResponseWriter, _ *http.Request)
| 511 | } |
| 512 | |
| 513 | func (s *Server) listAssets(w http.ResponseWriter, _ *http.Request) { |
| 514 | assets, err := s.currentVault().ListAssets() |
| 515 | if err != nil { |
| 516 | writeError(w, err) |
| 517 | return |
| 518 | } |
| 519 | writeJSON(w, http.StatusOK, assets) |
| 520 | } |
| 521 | |
| 522 | func (s *Server) assetsExists(w http.ResponseWriter, _ *http.Request) { |
| 523 | writeJSON(w, http.StatusOK, map[string]bool{"exists": s.currentVault().HasAssetsDir()}) |
nothing calls this directly
no test coverage detected