From c93fd6e2d455ea4208f9e5ca6bfbd1c0e9fd1ad9 Mon Sep 17 00:00:00 2001 From: Raphael Kabo Date: Mon, 26 Feb 2024 12:09:46 +0000 Subject: refactor: allow Cypress to override config --- src/app.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/app.ts') diff --git a/src/app.ts b/src/app.ts index 40425a8..0708081 100755 --- a/src/app.ts +++ b/src/app.ts @@ -1,5 +1,6 @@ import express from "express"; import hbs from "express-handlebars"; +import cookieParser from "cookie-parser"; import routes from "./routes.js"; import frontend from "./routes/frontend.js"; @@ -58,6 +59,9 @@ app.use(express.json({ type: activityPubContentType })); app.use(express.json({ type: "application/json" })); app.use(express.urlencoded({ extended: true })); +// Cookies // +app.use(cookieParser()); + // Router // app.use("/", staticPages); app.use("/", frontend); -- cgit v1.2.3