Created
          November 28, 2018 08:26 
        
      - 
      
 - 
        
Save dacioromero/7d806f425b39df8f3a2fa4a7c7ce25c9 to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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