Replace req.data with req.body in example