Werk hoofdapplicatie bij
Legt de bestaande wijzigingen in de hoofdworktree vast voordat de laatste worktree wordt gemerged.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
+5
-1
@@ -3,6 +3,10 @@ module.exports = function(req, res, next) {
|
||||
|
||||
if (!req.session.userId) {
|
||||
|
||||
if (req.originalUrl.startsWith("/api/")) {
|
||||
return res.status(401).json({ error: "Je bent niet ingelogd" });
|
||||
}
|
||||
|
||||
return res.redirect("/login");
|
||||
|
||||
}
|
||||
@@ -10,4 +14,4 @@ module.exports = function(req, res, next) {
|
||||
|
||||
next();
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user