storage api route

This commit is contained in:
BGV
2025-03-30 02:53:45 -04:00
parent 4fb2c9bc52
commit 1344115013

View File

@@ -10,6 +10,11 @@ async function connectToDatabase() {
// Only connect if not already connected // Only connect if not already connected
await mongoose.connect(uri, clientOptions); await mongoose.connect(uri, clientOptions);
console.log("Connected to MongoDB!"); console.log("Connected to MongoDB!");
mongoose.model("User", new mongoose.Schema({
email: { type: String, required: true, unique: true },
codeword: { type: String, required: true },
contacts: [{ type: String }],
}));
} }
} }