mongodb
This commit is contained in:
parent
35c07786cc
commit
1ccc09ed76
2 changed files with 2 additions and 1 deletions
|
@ -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");
|
||||
})
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue