first commit

This commit is contained in:
Daniel
2023-02-02 00:43:27 +02:00
commit 679d857570
29 changed files with 3540 additions and 0 deletions

11
db/connect.js Normal file
View File

@@ -0,0 +1,11 @@
const mongoose = require('mongoose')
const connectDB = (url) => {
mongoose.connect(url,{
useNewUrlParser: true,
useUnifiedTopology: true,
useFindAndModify: true,
useCreateIndex: true })
}
module.exports = connectDB