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:
Julian Lam
2016-05-10 10:36:19 -04:00
parent 693e724802
commit f1deaa6fa5
3 changed files with 74 additions and 75 deletions

View File

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