Updated code to support the fact that bodyParser() has been deprecated.