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('/apps/:appId/permissions', function (req, res, next) {
const opts = Object.assign({appId: req.params.appId}, req.query);
gplay.permissions(opts)
.then(toList)
.then(res.json.bind(res))
.catch(next);
});