(w http.ResponseWriter, r *http.Request)
| 44 | } |
| 45 | |
| 46 | func (h *Handler) handleFavicon(w http.ResponseWriter, r *http.Request) { |
| 47 | data, err := h.assets.ReadFile("public/favicon.ico") |
| 48 | if err != nil { |
| 49 | w.WriteHeader(http.StatusNotFound) |
| 50 | return |
| 51 | } |
| 52 | w.Header().Set("Content-Type", "image/x-icon") |
| 53 | w.Write(data) |
| 54 | } |
| 55 | |
| 56 | func (h *Handler) handleGetData(w http.ResponseWriter, r *http.Request) { |
| 57 | items := []model.DataItem{ |
nothing calls this directly
no outgoing calls
no test coverage detected