Just a bug fix

This commit is contained in:
nicoagostini committed 2025-05-05 18:17:35 -07:00
1 parent d0aa7a0fbd
commit 6819b82723
8 files changed
+38 -7

No files matched your search

+6 -1
View File
@@ -72,7 +72,7 @@ app.get('/login', (req, res) => {
});
app.get('/home', (req, res) => {
res.render('home');
res.render('home', { session: req.session });
return res.status(status.Ok);
});
@@ -106,6 +106,11 @@ app.get('/settings', (req, res) => {
return res.status(status.Ok);
});
app.get('/logout', (req, res) => {
req.session.destroy();
return res.redirect('/login');
});
app.get('/*splat', (req, res) => {
res.send('404 Not Found');
return res.status(status.NotFound);