|
@@ -9,7 +9,7 @@ const mongoose = require('mongoose');
|
|
|
app.use(bodyParser.urlencoded({ extended: false }))
|
|
|
app.use(bodyParser.json());
|
|
|
|
|
|
-mongoose.connect('mongodb://192.168.100.59:27017/fromEnzo', { useNewUrlParser: true, useUnifiedTopology: true })
|
|
|
+mongoose.connect('mongodb://192.168.100.59:27017/default', { useNewUrlParser: true, useUnifiedTopology: true })
|
|
|
.then(() => console.log('Database connected'))
|
|
|
.catch(err => console.log(err));
|
|
|
|