Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ask1811 committed Mar 19, 2023
1 parent 47d845d commit a05537d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ app.use(bodyParser.json());
app.use(cors());
//const swaggerUi = require("swagger-ui-express"), swaggerDocument = require("./swagger.json");

mongoose.connect("mongodb+srv://arg007:Freelancer%402022@cluster0.gp52g.mongodb.net/technohack?retryWrites=true&w=majority", {
mongoose.connect(MONGO_DB_CONFIG.DB, {
useNewUrlParser: true,
useUnifiedTopology: true,
})
Expand All @@ -31,4 +31,4 @@ app.use("/api/diabetes", require("./routes/diabetes.routes"));

app.listen(process.env.port || 4000, () => {
console.log("Server running")
})
})

0 comments on commit a05537d

Please sign in to comment.