diff options
| author | HumairAK <humair88@hotmail.com> | 2016-07-27 00:18:34 +0000 |
|---|---|---|
| committer | HumairAK <humair88@hotmail.com> | 2016-07-27 00:18:34 +0000 |
| commit | 25706820837bd05cdc3b186eb1d5ebabf9688a61 (patch) | |
| tree | afbc83b902d3f0789d5174bd2e2798937ab57b26 /app.js | |
| parent | 38594fd274a4bebee75ae71dbed457b39d253cae (diff) | |
| parent | 714368c049f8749ed22c6d1d07bb3adc783dc349 (diff) | |
Merge branch 'master' of https://github.com/HumairAK/solutions_repo
Diffstat (limited to 'app.js')
| -rw-r--r-- | app.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |
