0.1.0 • Published 7 years ago

@dylanjs/vhost v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

Vhost

Middleware for Dylan which enables virtual domain hosting.

Install

npm install @dylanjs/vhost

Usage

const dylan = require('dylan');
const www = dylan().createServer();
const admin = dylan().createServer();
const vhost = require('@dylanjs/vhost');
app.use(vhost({
  'www.foo.com': www,
  'admin.foo.com': admin
}));
0.1.0

7 years ago