Browse Source

middleware docs

master
Lloyd Brookes 9 years ago
parent
commit
a9af4fa959
  1. 1
      lib/local-web-server.js
  2. 14
      lib/middleware.js

1
lib/local-web-server.js

@ -246,7 +246,6 @@ function loadModule (modulePath) {
return module
}
function getIPList () {
const flatten = require('reduce-flatten')
const os = require('os')

14
lib/middleware.js

@ -0,0 +1,14 @@
'use strict'
class Middleware {
/**
* Return one or more options definitions to collect command-line input
* @returns {OptionDefinition|OptionDefinition[]}
*/
optionDefinitions () {}
/**
* Return one of more middleware functions with three args (req, res and next). Can be created by express, Koa or hand-rolled.
*/
middleware (localWebServer) {}
}
Loading…
Cancel
Save