Update server.js
This commit is contained in:
parent
13dd4b6376
commit
dca8dc92fd
@ -12,7 +12,7 @@ var app = express();
|
|||||||
var port = process.env.PORT || 3000;
|
var port = process.env.PORT || 3000;
|
||||||
|
|
||||||
/** this project needs a db !! **/
|
/** this project needs a db !! **/
|
||||||
// mongoose.connect(process.env.MONGOLAB_URI);
|
mongoose.connect(process.env.MONGOLAB_URI, { useMongoClient: true });
|
||||||
|
|
||||||
app.use(cors());
|
app.use(cors());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user