(w http.ResponseWriter, r *http.Request)
| 9 | type Handler struct{} |
| 10 | |
| 11 | func (h *Handler) Create(w http.ResponseWriter, r *http.Request) { |
| 12 | w.WriteHeader(http.StatusCreated) |
| 13 | log.Println("received request to create a monster") |
| 14 | w.Write([]byte("Monster created!")) |
| 15 | } |
| 16 | |
| 17 | func (h *Handler) FindByID(w http.ResponseWriter, r *http.Request) { |
| 18 | log.Println("handling READ request - Method:", r.Method) |
nothing calls this directly
no test coverage detected