Use existing thumbs for channel content #162

Merged
bones7242 merged 10 commits from use-existing-thumbs into master 2017-09-12 03:04:47 +02:00
Showing only changes of commit 5fb652ce5f - Show all commits

View file

@ -50,15 +50,14 @@ module.exports = (app) => {
errorHandlers.handleRequestError(error, res); errorHandlers.handleRequestError(error, res);
}); });
}); });
// route to display all free public claims at a given name // route to send embedable video player (for twitter)
app.get('/embed/:claimId/:name', ({ params }, res) => { app.get('/embed/:claimId/:name', ({ params }, res) => {
const claimId = params.claimId; const claimId = params.claimId;
const name = params.name; const name = params.name;
const dummyParam = '.b';
console.log('claimId ==', claimId); console.log('claimId ==', claimId);
console.log('name ==', name); console.log('name ==', name);
// get and render the content // get and render the content
res.status(200).render('embed', { layout: 'embed', claimId, name, dummyParam }); res.status(200).render('embed', { layout: 'embed', claimId, name });
}); });
// route to display all free public claims at a given name // route to display all free public claims at a given name
kauffj commented 2017-09-11 23:40:57 +02:00 (Migrated from github.com)
Review

🥂

:clinking_glasses:
app.get('/:name/all', ({ ip, originalUrl, params }, res) => { app.get('/:name/all', ({ ip, originalUrl, params }, res) => {