You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
requireAuthentication: function (req, res, next) { // next call tell express to move on
console.log('private route hit!');
next();
},
logger: function (req, res, next) {
console.log('Request: %s - Date: %s', req.method + ' ' + req.originalUrl, new Date().toLocaleString()); // originalUrl: that's going to show which requests are being made to our server