V3Index gets books
(w http.ResponseWriter, r *http.Request)
| 69 | |
| 70 | // V3Index gets books |
| 71 | func (b *Books) V3Index(w http.ResponseWriter, r *http.Request) { |
| 72 | result, err := b.getBooks(r) |
| 73 | if err != nil { |
| 74 | handleJSONError(w, err, "getting books") |
| 75 | return |
| 76 | } |
| 77 | |
| 78 | respondJSON(w, http.StatusOK, presenters.PresentBooks(result)) |
| 79 | } |
| 80 | |
| 81 | // V3Show gets a book |
| 82 | func (b *Books) V3Show(w http.ResponseWriter, r *http.Request) { |
nothing calls this directly
no test coverage detected