local changes

parent 76cbc9f4
...@@ -20,19 +20,10 @@ mongoose.connect(MONGO_URL, { ...@@ -20,19 +20,10 @@ mongoose.connect(MONGO_URL, {
useCreateIndex: true, useCreateIndex: true,
}); });
// const db = mongoose.connection;
// db.on("error", (error) => console.log(error, "connection error:"));
// db.once("open", () => {
// console.log("Connected to MongoDB Instance");
// });
// Express Initialisation // Express Initialisation
app.use(express.urlencoded({ extended: true })); app.use(express.urlencoded({ extended: true }));
app.use(express.json()); app.use(express.json());
app.use(express.urlencoded({ extended: false }));
// Routes // Routes
app.use("/auth", authRoute); app.use("/auth", authRoute);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment