diff --git a/src/server/pages/logout.js b/src/server/pages/logout.js new file mode 100644 index 0000000..f31a101 --- /dev/null +++ b/src/server/pages/logout.js @@ -0,0 +1,8 @@ +export default { + '/logout': { + get (req, res) { + req.session = null; + res.redirect('/'); + } + } +};