router.post(“/add”,async(req,res)=>{
const {name,email,phone,address} = req.body;
const newCustomer = new Customer({ name,email,phone, address})
await newCustomer.save();
res.render("index")
})
need answer dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffvvvvvvv
New contributor
mamato khan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.