mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
httpStaticMiddleware support array of middlewares
This commit is contained in:
2
packages/node_modules/node-red/red.js
vendored
2
packages/node_modules/node-red/red.js
vendored
@@ -424,7 +424,7 @@ httpsPromise.then(function(startupHttps) {
|
||||
if (settings.httpStatic) {
|
||||
let appUseMem = {};
|
||||
let httpStaticMiddleware = (req, res, next) => next()
|
||||
if (typeof settings.httpStaticMiddleware === 'function' || isArray(settings.httpStaticMiddleware)) {
|
||||
if (typeof settings.httpStaticMiddleware === 'function' || Array.isArray(settings.httpStaticMiddleware)) {
|
||||
httpStaticMiddleware = settings.httpStaticMiddleware
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user