MCPcopy Index your code
hub / github.com/dnote/dnote / V3Index

Method V3Index

pkg/server/controllers/books.go:71–79  ·  view source on GitHub ↗

V3Index gets books

(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

69
70// V3Index gets books
71func (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
82func (b *Books) V3Show(w http.ResponseWriter, r *http.Request) {

Callers

nothing calls this directly

Calls 4

getBooksMethod · 0.95
PresentBooksFunction · 0.92
handleJSONErrorFunction · 0.85
respondJSONFunction · 0.85

Tested by

no test coverage detected