Just a bug fix
This commit is contained in:
1 parent
d0aa7a0fbd
commit
6819b82723
8 files changed
+38
-7
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user