spee.ch/server/controllers/pages/sendEmbedPage.js

11 lines
325 B
JavaScript
Raw Normal View History

2018-04-18 12:17:01 -07:00
const { details: { host } } = require('../../../config/siteConfig.js');
2018-03-29 09:48:32 -07:00
2018-03-29 11:40:47 -07:00
const sendEmbedPage = ({ params }, res) => {
const claimId = params.claimId;
const name = params.name;
// get and render the content
res.status(200).render('embed', { layout: 'embed', host, claimId, name });
2018-03-29 09:48:32 -07:00
};
module.exports = sendEmbedPage;