Tell us what’s happening:
The previous assignment passed. Below is the only new code that I added per the new assignment. What am I doing wrong here? I’ve also included the console error message.
app.route('/logout').get((req, res) => {
req.logout();
res.redirect('/');
});
app.use((req, res, next) => {
res.status(404)
.type('text')
.send('Not Found');
});
Your project link(s)
solution: boilerplate-advancednode - Replit
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Challenge: Advanced Node and Express - Logging a User Out
Link to the challenge: