Update index.js

fixed a error when run node-red with httpAdminRoot=false
https://github.com/node-red/node-red/issues/2166
This commit is contained in:
KentWood 2019-05-18 17:04:56 +08:00
parent cc051544f9
commit 87a1f616b0
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ var stubbedExpressApp = {
}
var adminApi = {
auth: {
needsPermission: function() {}
needsPermission: function() {return function(req,res,next) {next()}}
},
adminApp: stubbedExpressApp,
server: {}