koa-mount-host
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

koa-mount-host

CircleCI

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

Package Sidebar

Install

npm i koa-mount-host

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

137 kB

Total Files

13

Last publish

Collaborators

  • ulrikstrid