0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00

Fixed issue with not being able to disable the web interface

This commit is contained in:
Robin Persson 2015-01-26 10:27:41 +01:00 committed by Alex Kocharin
parent bc91a05dd2
commit c49b0699c2

View file

@ -90,7 +90,9 @@ module.exports = function(config_hash) {
app.use(require('./index-api')(config, auth, storage))
if (config.web && config.web.enable === false) {
next( Error[404]('web interface is disabled in the config file') )
app.get('/', function(req, res, next) {
next( Error[404]('web interface is disabled in the config file') )
})
} else {
app.use(require('./index-web')(config, auth, storage))
}