1.0.3 • Published 6 years ago
koa-mount-host v1.0.3
koa-mount-host
Mount a Koa app on a specified host.
Notice: only supports koa@2
.
Installation
$ npm install koa-mount-host
Examples
Mount a app on host localhost:3000
so that it only matches when the host is localhost:3000
.
app.use(rewrite("localhost:3000", app2));
License
MIT