mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
added new hook for hotswap preparation
This commit is contained in:
@@ -101,8 +101,9 @@ function initializeNodeBB(callback) {
|
||||
middleware: middleware
|
||||
}, next);
|
||||
},
|
||||
function(next) {
|
||||
routes(app, middleware);
|
||||
async.apply(plugins.fireHook, 'filter:hotswap.prepare', []),
|
||||
function(hotswapIds, next) {
|
||||
routes(app, middleware, hotswapIds);
|
||||
next();
|
||||
}
|
||||
], callback);
|
||||
|
||||
Reference in New Issue
Block a user