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:
+24
-2
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user