Skip to content

Commit e50cf3e

Browse files
committed
removed error middleware due to deployment
1 parent ed9746f commit e50cf3e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const config = require("config");
3434
const serverPort = config.get("port");
3535

3636
// MIDDLEWARE
37-
const error = require("./middleware/error");
37+
// const error = require("./middleware/error");
3838

3939
// USE MIDDLEWARE
4040
app.use(helmet());
@@ -52,7 +52,7 @@ const director = require("./routes/directors");
5252
const writer = require("./routes/writers");
5353

5454
// USE ERROR MIDDLEWARE
55-
app.use(error);
55+
// app.use(error);
5656

5757
// CONNECT TO MONGODB DATABASE
5858
mongoose

0 commit comments

Comments
 (0)