mirror of
https://github.com/sstent/expressmongotest.git
synced 2026-01-31 11:31:56 +00:00
upgraded to express 3.x, converted jade templates, and worked out array notation for articles/exercises
This commit is contained in:
@@ -5,11 +5,10 @@
|
||||
var notLoggedIn = require('./middleware/not_logged_in');
|
||||
|
||||
module.exports = function(app) {
|
||||
app.dynamicHelpers({
|
||||
session: function(req, res) {
|
||||
return req.session;
|
||||
}
|
||||
});
|
||||
// app.use(function(req, res) {
|
||||
// console.log("session " + req.session + " - " + JSON.stringify(req.session));
|
||||
// res.locals.session = req.session;
|
||||
// });
|
||||
|
||||
app.get('/session/new', notLoggedIn, function(req, res) {
|
||||
res.render('session/new', {title: "Log in"});
|
||||
|
||||
Reference in New Issue
Block a user