diff --git a/routes/page-routes.js b/routes/page-routes.js index dbfd83fb..e6d04f01 100644 --- a/routes/page-routes.js +++ b/routes/page-routes.js @@ -36,12 +36,11 @@ module.exports = (app) => { }); }); // route to display all free public claims at a given name - app.get('/embed/:claimId/:fileName', ({ params }, res) => { + app.get('/embed/:claimId/:name', ({ params }, res) => { const claimId = params.claimId; - const fileName = params.fileName; - const fileExtension = '.mp4'; + const name = params.name; // get and render the content - res.status(200).render('embed', { layout: 'embed', claimId, fileName, fileExtension }); + res.status(200).render('embed', { layout: 'embed', claimId, name }); }); // route to display all free public claims at a given name app.get('/:name/all', ({ ip, originalUrl, params }, res) => { diff --git a/speech.js b/speech.js index 9f47c152..2e560474 100644 --- a/speech.js +++ b/speech.js @@ -91,7 +91,8 @@ const hbs = expressHandlebars.create({ - + + ` ); } else { diff --git a/views/embed.handlebars b/views/embed.handlebars index ec88ee84..a30ff335 100644 --- a/views/embed.handlebars +++ b/views/embed.handlebars @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file