more middleware

This commit is contained in:
Lloyd Brookes
2017-03-15 21:10:36 +00:00
parent 04e6177d5f
commit af2cf77a18
2 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,7 @@ const Lws = require('lws')
class LocalWebServer extends Lws {
constructor () {
const path = require('path')
const stack = [ 'log', 'cors', 'json', 'rewrite', 'body-parser', 'blacklist', 'conditional-get', 'mime', 'compress', 'static', 'index' ].map(name => {
const stack = [ 'log', 'cors', 'json', 'rewrite', 'body-parser', 'blacklist', 'conditional-get', 'mime', 'compress', 'mock-response', 'spa', 'static', 'index' ].map(name => {
return path.resolve(__dirname, `../node_modules/local-web-server-${name}`)
})
super({ stack })