mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 07:25:46 +01:00
firing new third type of hook, static. New hook: static:app.load, closed #1812
This commit is contained in:
@@ -188,7 +188,7 @@ module.exports = function(app, middleware) {
|
||||
userRoutes(router, middleware, controllers);
|
||||
groupRoutes(router, middleware, controllers);
|
||||
|
||||
plugins.fireHook('filter:app.load', router, middleware, controllers, function() {
|
||||
plugins.fireHook('static:app.load', router, middleware, controllers, function() {
|
||||
app.use(relativePath, router);
|
||||
|
||||
app.use(relativePath, express.static(path.join(__dirname, '../../', 'public'), {
|
||||
|
||||
Reference in New Issue
Block a user