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:
2026-08-07 20:45:36 +02:00
parent 26a820b41a
commit c07d503d83
41 changed files with 1837 additions and 313 deletions
+5 -1
View File
@@ -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();
};
};