Rewrite middlewares using the simpler form func(c context.Context, w http.ResponseWriter, r *http.Request, next web.Handler)