Skip to content

Commit

Permalink
removed error middleware due to deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Thatskat committed Jul 19, 2023
1 parent ed9746f commit e50cf3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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
Expand Down

0 comments on commit e50cf3e

Please sign in to comment.