From 7eefe90d8ccada249f266df5d8d0a0818842a915 Mon Sep 17 00:00:00 2001 From: Nikhil Nawgiri Date: Sat, 26 Oct 2024 22:48:33 +0200 Subject: [PATCH] Add expressHelper --- be/src/expressHelper.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 be/src/expressHelper.ts diff --git a/be/src/expressHelper.ts b/be/src/expressHelper.ts new file mode 100644 index 0000000..7f2231f --- /dev/null +++ b/be/src/expressHelper.ts @@ -0,0 +1,11 @@ +import express, { type Express } from "express"; +import bodyParser from "body-parser"; + +const app: Express = express(); + +app.use(bodyParser.urlencoded({ + extended: true +})); +app.use(bodyParser.json()); + +export { app };