aboutsummaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authornanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-27 00:03:35 +0000
committernanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-27 00:03:35 +0000
commit8beb37ed67b5f2fa0f9aa85499a8f11b39c9d067 (patch)
treebd4b05a1e374b6cb10097bbcfbc12ef51c1cb85b /app.js
parent5e73fe37c32faf821d3d16f0251007e366cb090b (diff)
need pull
Diffstat (limited to 'app.js')
-rw-r--r--app.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/app.js b/app.js
index 0b7eb57..476d538 100644
--- a/app.js
+++ b/app.js
@@ -17,8 +17,7 @@ var routes = require('./routes/index');
var userRoutes = require('./routes/user');
var adminRoutes = require('./routes/admin');
-var exports = module.exports = {};
-var app = exports.app = express();
+var app = express();
// Templating engine, we are using handlebars
// This will allow us to create html pages dynamically before serving them.
@@ -46,9 +45,11 @@ app.use(flash());
app.use(passport.initialize());
app.use(passport.session());
+
require('./config/passport'); // simply need to load it
/*LOADS ALL STATIC FILES FROM THE DIRECTORY __dirname*/
+//app.use(minify({cache: __dirname + '/cache'}));
app.use(express.static(__dirname));
// Needed to style the header based on the whether the user is signed in or not