1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

View File

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