mip.js 261 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 'use strict'; module.exports = () => { return (req, res, next) => { Object.assign(res.locals, { canonical: 'https://m.yohobuy.com' + req.path, mip: 'https://mip.yohobuy.com' + req.path }); next(); }; };