UNPKG

catproxy

Version:

a node proxy or host change tools

15 lines (13 loc) 277 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (option) { return function (req, res, next) { if (req.path === '/' || req.path === '/index.html') { res.render("host/app", option); } else { next(); } }; };