This commit is contained in:
clement callaert 2023-11-05 20:05:18 +01:00
parent 35c07786cc
commit 1ccc09ed76
2 changed files with 2 additions and 1 deletions

View file

@ -61,6 +61,7 @@ router.post('/commandeCrepe', async function (req, res) {
prenom: prenom,
finish: false
}
await db.getDb().collection('commandes').insertOne(crepeCommande);
res.redirect("/hotLine");
})

View file

@ -35,7 +35,7 @@
<h2>
Commander
</h2>
<form action="/commandeCrepe" methode="POST">
<form action="/commandeCrepe" method="POST">
<ul>
<li>
<label for="garniture">Sur votre crepe</label>