Blame view

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