added new hook for hotswap preparation

This commit is contained in:
Julian Lam
2016-04-14 11:16:12 -04:00
parent dde7f26944
commit 2ddcaa9ce1
2 changed files with 22 additions and 9 deletions

View File

@@ -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);