Merge pull request #3 from developit/patch-1
Fix options not being passed to npm-http-server
This commit is contained in:
commit
b7aff74b46
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue