created getTrips method from user. It respond with a json response formatted following the BaseController format.