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