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
+24 -2
View File
@@ -57,9 +57,24 @@ module.exports = () => {
app.use(session);
app.use(userMiddleware);
app.use(flash());
app.use(flash());
app.use(userMiddleware);
app.use((req, res, next) => {
res.locals.user = req.user || null;
res.locals.success = req.flash("success");
res.locals.error = req.flash("error");
res.locals.info = req.flash("info");
res.locals.warning = req.flash("warning");
res.locals.title = res.locals.title || "PantryHub";
next();
});
app.use(
@@ -69,6 +84,13 @@ app.use(flash());
);
// API Routes
app.use(
"/api",
require("../routes/api")
);
// Web Routes
app.use(
"/",
require("../routes/auth")