export const deleteProfile = async (req, res) => { const { id } = req.params; await Customer.findByIdAndDelete(id); return res.redirect('/'); };