Servie Vhost
Simple virtual host middleware for Servie.
Installation
npm install servie-vhost --save
Usage
;; ;
For projects whose host
is not in the header, they can switch between exported getHostFromHeader
and getHostFromUrl
functions, or define their own, as the third argument to vhost(hostname, fn, getHost)
.
TypeScript
This project is written using TypeScript and publishes the definitions directly to NPM.
License
Apache 2.0