UNPKG
catproxy
Version:
latest (1.2.16)
1.2.16
1.2.15
1.2.14
1.2.13
1.2.12
1.2.11
1.2.10
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.1
1.1.0
1.0.0
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
a node proxy or host change tools
github.com/jianxcao/catproxy
jianxcao/catproxy
catproxy
/
build
/
web
/
host.js
15 lines
(13 loc)
•
259 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'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
(); } }; };