Skip to content

Instantly share code, notes, and snippets.

@seemcat seemcat/server.js
Last active Sep 14, 2018

Embed
What would you like to do?
// 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
You can’t perform that action at this time.