Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
router.get('/developers/:devId/', function (req, res, next) {
const opts = Object.assign({devId: req.params.devId}, req.query);
gplay.developer(opts)
.then((apps) => apps.map(cleanUrls(req)))
.then((apps) => ({
devId: req.params.devId,
apps
}))
.then(res.json.bind(res))
.catch(next);
});