From 7eb9926c026a7080afd248a8ed50521f758e1d86 Mon Sep 17 00:00:00 2001 From: bill bittner Date: Tue, 8 Aug 2017 12:39:22 -0700 Subject: [PATCH] made video source its own element --- routes/page-routes.js | 7 +++---- speech.js | 3 ++- views/embed.handlebars | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) 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