UNPKG

diet

Version:

A tiny, fast and modular node.js web framework. Good for making fast & scalable apps and apis.

9 lines 283 B
"use strict" const utils = require('./utils') module.exports = function(app, servers){ return function(location, options){ app.emit('host', { app: app, location: location, options: options }) let host = utils.getHost(location, options) app.hosts[host.location.host] = app } }