Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
router.get(/^(.*)\/(audio|video)\.sidx/, Movie.openMovie, (req, res) => {
let type = req.params[1];
req.logger.info('Type:', type);
let buffer = VideoLib.DASHPacketizer[`${type}Index`](req.fragmentList);
res.send(buffer);
});