Merge branch 'master' of github.com:psychobunny/node-forum

This commit is contained in:
Julian Lam
2013-05-17 14:26:26 -04:00
12 changed files with 169 additions and 163 deletions

View File

@@ -20,7 +20,7 @@ var express = require('express'),
(function(app) {
var templates = global.templates;
var templates = null;
// Middlewares
app.use(express.favicon()); // 2 args: string path and object options (i.e. expire time etc)
@@ -38,6 +38,11 @@ var express = require('express'),
key: 'express.sid'
}));
module.exports.init = function() {
templates = global.templates;
}
auth.initialize(app);
app.use(function(req, res, next) {