Norahs Infinite Playlist Fix — Nick And

The two embark on a city-wide hunt for "Where’s Fluffy?", a secret band that plays at undisclosed locations. The Complication:

app.get('/api/history', (req, res) => res.json(playlist.filter(song => song.played)); ); nick and norahs infinite playlist

const playSong = async (id) => await fetch( http://localhost:4000/api/play/$id , method: 'POST' ); // Refresh history after playing const histRes = await fetch('http://localhost:4000/api/history'); const newHistory = await histRes.json(); setHistory(newHistory); ; The two embark on a city-wide hunt for "Where’s Fluffy