2018-06-05 19:34:24 -07:00
|
|
|
const { details: { host } } = require('@config/siteConfig');
|
2018-03-29 09:48:32 -07:00
|
|
|
|
2018-06-25 19:04:17 -07:00
|
|
|
const sendVideoEmbedPage = ({ params }, res) => {
|
2018-03-29 11:40:47 -07:00
|
|
|
const claimId = params.claimId;
|
|
|
|
const name = params.name;
|
2018-07-12 12:44:53 -07:00
|
|
|
// test setting response headers
|
|
|
|
console.log('removing x-frame-options');
|
|
|
|
res.removeHeader('X-Frame-Options');
|
2018-03-29 11:40:47 -07:00
|
|
|
// get and render the content
|
2018-07-02 18:22:06 -07:00
|
|
|
res.status(200).render('embed', { host, claimId, name });
|
2018-03-29 09:48:32 -07:00
|
|
|
};
|
|
|
|
|
2018-06-25 19:04:17 -07:00
|
|
|
module.exports = sendVideoEmbedPage;
|