Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.get('/', async (req, res) => {
- let { data } = await axios('https://platprices.com/api.php?key=<apikey>&sale=2601®ion=tr')
- const gamesArr = data.game_discounts;
- let openCriticId = [];
- for (let i of gamesArr) {
- const { data } = axios(`https://api.opencritic.com/api/game/${i.OpenCriticID}`)
- openCriticId = [...openCriticID, { data.name, data.mediansCore }];
- }
- res.render('inicio', { gamesArr })
- })
- OUTPUT:
- openCriticId = [...openCriticID, { data.name, data.medianScore }];
- ^
- SyntaxError: Unexpected token '.'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement