• 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
  • layout-tools.js
  • DNS 预读配置
    2c3321ea
    by 徐炜
    2016-12-05 12:11:07 +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();
    };
};