From e50cf3ed5392f65b49d434519ffc47aa532e53cb Mon Sep 17 00:00:00 2001 From: Thatskat <109633947+Thatskat@users.noreply.github.com> Date: Wed, 19 Jul 2023 15:59:26 +1000 Subject: [PATCH] removed error middleware due to deployment --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index e4d1106..beb3922 100644 --- a/index.js +++ b/index.js @@ -34,7 +34,7 @@ const config = require("config"); const serverPort = config.get("port"); // MIDDLEWARE -const error = require("./middleware/error"); +// const error = require("./middleware/error"); // USE MIDDLEWARE app.use(helmet()); @@ -52,7 +52,7 @@ const director = require("./routes/directors"); const writer = require("./routes/writers"); // USE ERROR MIDDLEWARE -app.use(error); +// app.use(error); // CONNECT TO MONGODB DATABASE mongoose