Use existing thumbs for channel content #162
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
|
|||||||
app.get('/:name/all', ({ ip, originalUrl, params }, res) => {
|
app.get('/:name/all', ({ ip, originalUrl, params }, res) => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue
🥂