mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
Exposing middleware to app/req, organisation.
Organisation -- moved 404 and error controllers into the controllers file instead of as local variables in routes/index
This commit is contained in:
@@ -45,7 +45,7 @@ server.on('error', function(err) {
|
||||
module.exports.listen = function() {
|
||||
emailer.registerApp(app);
|
||||
|
||||
middleware = middleware(app);
|
||||
app.locals.middleware = middleware = middleware(app);
|
||||
|
||||
helpers.register();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user