mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	feat: #7743, webserver
This commit is contained in:
		| @@ -125,9 +125,9 @@ Plugins.reload = async function () { | ||||
| 	}); | ||||
| }; | ||||
|  | ||||
| Plugins.reloadRoutes = async function (router) { | ||||
| Plugins.reloadRoutes = async function (params) { | ||||
| 	var controllers = require('../controllers'); | ||||
| 	await Plugins.fireHook('static:app.load', { app: app, router: router, middleware: middleware, controllers: controllers }); | ||||
| 	await Plugins.fireHook('static:app.load', { app: app, router: params.router, middleware: middleware, controllers: controllers }); | ||||
| 	winston.verbose('[plugins] All plugins reloaded and rerouted'); | ||||
| }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user