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:
parent
cc051544f9
commit
87a1f616b0
@ -46,7 +46,7 @@ var stubbedExpressApp = {
|
||||
}
|
||||
var adminApi = {
|
||||
auth: {
|
||||
needsPermission: function() {}
|
||||
needsPermission: function() {return function(req,res,next) {next()}}
|
||||
},
|
||||
adminApp: stubbedExpressApp,
|
||||
server: {}
|
||||
|
Loading…
Reference in New Issue
Block a user