first-space / src /database /conection.js
chartManD's picture
get de registros glucosa por id usuario
a98870b
raw
history blame contribute delete
271 Bytes
let mongoose = require("mongoose");
const connectDB = async () => {
try {
await mongoose.connect(process.env.MONGO_URI);
} catch (error) {
console.error("Error al conectar a MongoDB:", error.message);
process.exit(1);
}
};
module.exports = connectDB;