(rw http.ResponseWriter, req *http.Request)
| 558 | } |
| 559 | |
| 560 | func (h *Handler) serveRecentPermanodes(rw http.ResponseWriter, req *http.Request) { |
| 561 | defer httputil.RecoverJSON(rw, req) |
| 562 | var rr RecentRequest |
| 563 | rr.fromHTTP(req) |
| 564 | res, err := h.GetRecentPermanodes(req.Context(), &rr) |
| 565 | if err != nil { |
| 566 | httputil.ServeJSONError(rw, err) |
| 567 | return |
| 568 | } |
| 569 | httputil.ReturnJSON(rw, res) |
| 570 | } |
| 571 | |
| 572 | // GetPermanodesWithAttr returns permanodes with attribute req.Attr |
| 573 | // having the req.Value as a value. |
nothing calls this directly
no test coverage detected