Add a context property to the request object in middleware