Skip to content
Snippets Groups Projects

v0.2.1

8 files
+ 119
93
Compare changes
  • Side-by-side
  • Inline

Files

+ 7
0
module.exports = (req, res, next) => {
if (req.session.user || ['/', '/auth/signup', '/auth/login'].includes(req.url)) {
next();
} else {
return res.redirect('/auth/signup');
}
};
\ No newline at end of file
Loading