Skip to content

Instantly share code, notes, and snippets.

@dacioromero
Created November 28, 2018 08:26
Show Gist options
  • Save dacioromero/7d806f425b39df8f3a2fa4a7c7ce25c9 to your computer and use it in GitHub Desktop.
Save dacioromero/7d806f425b39df8f3a2fa4a7c7ce25c9 to your computer and use it in GitHub Desktop.
router.get('/test', (req, res) => {
const appids = req.query.appids.split(',')
const urls = appids.map(id =>`https://store.steampowered.com/app/${id}`);
igbd.games({
fields: ['name', 'cover'],
filters: {
'websites.url-in': urls
}
})
.then(results => {
res.status(200).json(results);
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment