middleware docs
This commit is contained in:
@ -246,7 +246,6 @@ function loadModule (modulePath) {
|
||||
return module
|
||||
}
|
||||
|
||||
|
||||
function getIPList () {
|
||||
const flatten = require('reduce-flatten')
|
||||
const os = require('os')
|
||||
|
14
lib/middleware.js
Normal file
14
lib/middleware.js
Normal file
@ -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) {}
|
||||
}
|
Reference in New Issue
Block a user