diff --git a/app.js b/app.js index 89199dd..0020572 100644 --- a/app.js +++ b/app.js @@ -32,7 +32,7 @@ app.use( ); //connection à mongoDB -mongoose.connect('mongodb+srv://ichat:LjfNhCj0YwwryZiF@cluster0.uzln9.mongodb.net/?retryWrites=true&w=majority', { +mongoose.connect('', { useCreateIndex: true, useNewUrlParser: true, useUnifiedTopology: true @@ -335,4 +335,4 @@ app.post('/app/newfriend', authController.withAuth, (req, res, next) => { }) }) -module.exports = app; \ No newline at end of file +module.exports = app;