• This project
    • Loading...
  • Sign in

fe / yohoblk-wap · 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
  • yohoblk-wap
  • doraemon
  • middleware
  • layout-tools.js
  • 商品列表和详情页优化
    4b9d84d3
    by 陈峰
    2017-08-25 14:47:37 +0800  
    Browse Files
layout-tools.js 244 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13
'use strict';

const dnsPrefetch = require('../../config/dns-prefetch');

module.exports = () => {
    return (req, res, next) => {
        Object.assign(res.locals, {
            dnsPrefetch: dnsPrefetch
        });

        next();
    };
};