(router *http.ServeMux)
| 7 | ) |
| 8 | |
| 9 | func loadRoutes(router *http.ServeMux) { |
| 10 | handler := &monster.Handler{} |
| 11 | |
| 12 | router.HandleFunc("POST /monster", handler.Create) |
| 13 | router.HandleFunc("PUT /monster/{id}", handler.UpdateByID) |
| 14 | router.HandleFunc("GET /monster/{id}", handler.FindByID) |
| 15 | router.HandleFunc("DELETE /monster/{id}", handler.DeleteByID) |
| 16 | } |
nothing calls this directly
no outgoing calls
no test coverage detected