(next http.Handler)
| 48 | } |
| 49 | |
| 50 | func (f *restFrontEnd) loggingMiddleware(next http.Handler) http.Handler { |
| 51 | return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
| 52 | log.Println(r.Method, r.RequestURI) |
| 53 | next.ServeHTTP(w, r) |
| 54 | }) |
| 55 | } |
| 56 | |
| 57 | func (f *restFrontEnd) notAllowedHandler(w http.ResponseWriter, r *http.Request) { |
| 58 | http.Error(w, "Not Allowed", http.StatusMethodNotAllowed) |
nothing calls this directly
no outgoing calls
no test coverage detected