mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	allow for adding an array of middleware functions
This commit is contained in:
		| @@ -59,8 +59,8 @@ function init(settings,_server,storage,runtimeAPI) { | ||||
|         adminApp.use(corsHandler); | ||||
|  | ||||
|         if (settings.httpAdminMiddleware) { | ||||
|             if (typeof settings.httpAdminMiddleware === "function") { | ||||
|                 adminApp.use(settings.httpAdminMiddleware) | ||||
|             if (typeof settings.httpAdminMiddleware === "function" || Array.isArray(settings.httpAdminMiddleware)) { | ||||
|                 adminApp.use(settings.httpAdminMiddleware); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user