Skip to content

Commit

Permalink
Fixed issue with not being able to disable the web interface
Browse files Browse the repository at this point in the history
  • Loading branch information
prssn authored and rlidwka committed Jan 26, 2015
1 parent bc91a05 commit c49b069
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit c49b069

Please sign in to comment.