Versie module 1 van 26-7
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
module.exports = function(req, res, next) {
|
||||
|
||||
|
||||
if (!req.session.userId) {
|
||||
|
||||
return res.redirect("/login");
|
||||
|
||||
}
|
||||
|
||||
|
||||
next();
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user