• This project
    • Loading...
  • Sign in

fe / yohobuywap-node · Files

Go to a project

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Pipelines 0
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • Create a new issue
  • yohobuywap-node
  • doraemon
  • middleware
  • mip.js
  • 完成80%
    ad910104
    by 李靖
    2017-05-23 16:35:44 +0800  
    Browse Files
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();
};