moved bodyParser into endpoint creation pipeline