Move the afterMiddleware functions so that controller data is added to the request