UNPKG

catproxy

Version:

a node proxy or host change tools

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