Last active
September 14, 2018 18:15
-
-
Save seemcat/1e3c9dbbca01f44c783e07d960edfd27 to your computer and use it in GitHub Desktop.
This file contains 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
// server.js | |
app.get('/videoTokens', (req, res) => { | |
ZiggeoSdk.Videos.index({}, (vidInfos) => { | |
const videos = vidInfos.reduce((acc, vidInfo) => { | |
acc.push(vidInfo.token); | |
return acc; | |
}, []); | |
res.send(videos); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment