summaryrefslogtreecommitdiff
path: root/src/app.ts
diff options
context:
space:
mode:
authorRaphael Kabo <raphaelkabo@hey.com>2024-02-26 12:09:46 +0000
committerRaphael Kabo <raphaelkabo@hey.com>2024-02-26 12:09:46 +0000
commitc93fd6e2d455ea4208f9e5ca6bfbd1c0e9fd1ad9 (patch)
tree8baed2c232b629a98b21006adf440f6f83d5da57 /src/app.ts
parent363cfbae076f4494ddd5fddcf03de622f6247051 (diff)
refactor: allow Cypress to override config
Diffstat (limited to 'src/app.ts')
-rwxr-xr-xsrc/app.ts4
1 files changed, 4 insertions, 0 deletions
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);