mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Attached admin route before node route security
This commit is contained in:
		
							
								
								
									
										6
									
								
								red.js
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								red.js
									
									
									
									
									
								
							| @@ -195,12 +195,12 @@ if (settings.httpAdminRoot !== false && settings.httpAdminAuth) { | ||||
|     app.use(settings.httpAdminRoot, basicAuthMiddleware(settings.httpAdminAuth.user,settings.httpAdminAuth.pass)); | ||||
| } | ||||
|  | ||||
| if (settings.httpNodeRoot !== false && settings.httpNodeAuth) { | ||||
|     app.use(settings.httpNodeRoot,basicAuthMiddleware(settings.httpNodeAuth.user,settings.httpNodeAuth.pass)); | ||||
| } | ||||
| if (settings.httpAdminRoot !== false) { | ||||
|     app.use(settings.httpAdminRoot,RED.httpAdmin); | ||||
| } | ||||
| if (settings.httpNodeRoot !== false && settings.httpNodeAuth) { | ||||
|     app.use(settings.httpNodeRoot,basicAuthMiddleware(settings.httpNodeAuth.user,settings.httpNodeAuth.pass)); | ||||
| } | ||||
| if (settings.httpNodeRoot !== false) { | ||||
|     app.use(settings.httpNodeRoot,RED.httpNode); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user