From f433205c64a1d300c5654c6f9ea00789315752b7 Mon Sep 17 00:00:00 2001 From: rekhamehta8 <56001588+rekhamehta8@users.noreply.github.com> Date: Thu, 1 Oct 2020 20:33:42 +0530 Subject: [PATCH] Update index.js --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 05a874a..1d12c1d 100644 --- a/index.js +++ b/index.js @@ -11,8 +11,7 @@ require("dotenv").config(); require("./config/dbconnection"); app.use(cors({ exposedHeaders: "x-auth-token" })); -app.use(express.static(path.join(__dirname, "public"))); -app.use("/uploads", express.static(path.join(__dirname, "uploads"))); + app.use( bodyParser.urlencoded({ limit: "50mb",