Merge pull request #3 from developit/patch-1

Fix options not being passed to npm-http-server
This commit is contained in:
Michael Jackson 2016-03-17 08:38:34 -07:00
commit b7aff74b46
1 changed files with 4 additions and 4 deletions

View File

@ -10,10 +10,10 @@ const app = express()
app.disable('x-powered-by')
app.use(cors())
app.use(express.static('public', { maxAge: 60000 }))
app.use(createRequestHandler(
registryURL,
bowerBundle
))
app.use(createRequestHandler({
registryURL: registryURL,
bowerBundle: bowerBundle
}))
app.listen(port, function () {
console.log('Server started on port %s, Ctrl+C to quit', port)