tennotv
Version:
Warframe YouTube Content
18 lines (16 loc) • 451 B
JavaScript
const videos = async ({
router, logger, sums, serviceAPI, ravenDSN, ytApiKey, ytClientId,
}) => {
router.get('/v/:videoId', (req, res) => {
logger.log('silly', `Received ${req.method} request for ${req.orginalUrl} from ${req.connection.remoteAddress}`);
res.render('index', {
sums,
serviceAPI,
initialVideo: req.params.videoId,
ravenDSN,
ytApiKey,
ytClientId,
});
});
};
module.exports = videos;