natural-language-api-google/db/connect.js

10 lines
134 B
JavaScript

const mongoose = require('mongoose');
const connectDB = (url) => {
return mongoose.connect(url);
};
module.exports = connectDB;