removed unnecessary param from twitter embed route

This commit is contained in:
bill bittner 2017-09-11 09:07:00 -07:00
parent cf65bca617
commit 5fb652ce5f

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
app.get('/:name/all', ({ ip, originalUrl, params }, res) => { app.get('/:name/all', ({ ip, originalUrl, params }, res) => {