Merge pull request #6 from abhijeetps/gomix
Fixed Deprecation Warning of Mongoose - Error
This commit is contained in:
commit
fb1d7c2ced
@ -10,7 +10,8 @@ const express = require('express'),
|
|||||||
const port = process.env.PORT || 3000;
|
const port = process.env.PORT || 3000;
|
||||||
|
|
||||||
/** this project needs a db !! **/
|
/** this project needs a db !! **/
|
||||||
// mongoose.connect(process.env.DB_URI);
|
mongoose.connect(process.env.MONGOLAB_URI, { useMongoClient: true });
|
||||||
|
|
||||||
|
|
||||||
app.use(cors());
|
app.use(cors());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user