You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
375 B

9 years ago
  1. 'use strict'
  2. class Middleware {
  3. /**
  4. * Return one or more options definitions to collect command-line input
  5. * @returns {OptionDefinition|OptionDefinition[]}
  6. */
  7. optionDefinitions () {}
  8. /**
  9. * Return one of more middleware functions with three args (req, res and next). Can be created by express, Koa or hand-rolled.
  10. */
  11. middleware (localWebServer) {}
  12. }