router.js: pass in request instead of postData