Skip to content

ulrikstrid/koa-rewrite-host

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa-rewrite-host

CircleCI

URL rewrite middleware for koa depending on host.

Notice: only supports koa@2.

Installation

$ npm install koa-rewrite-host

Examples

Rewrite using a when host is localhost, rewriting /home to /localhost/home.

app.use(rewrite("localhost:3000", "/localhost"));

License

MIT

About

URL rewrite middleware for koa depending on host.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published