UNPKG

catproxy

Version:

a node proxy or host change tools

10 lines (9 loc) 164 B
export default () => { return (req, res, next)=> { if (req.url == "/" || req.url == "/index.html") { res.render("host/app"); } else { next(); } }; };