update controller to output the request body