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,
|
prenom: prenom,
|
||||||
finish: false
|
finish: false
|
||||||
}
|
}
|
||||||
|
|
||||||
await db.getDb().collection('commandes').insertOne(crepeCommande);
|
await db.getDb().collection('commandes').insertOne(crepeCommande);
|
||||||
res.redirect("/hotLine");
|
res.redirect("/hotLine");
|
||||||
})
|
})
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
<h2>
|
<h2>
|
||||||
Commander
|
Commander
|
||||||
</h2>
|
</h2>
|
||||||
<form action="/commandeCrepe" methode="POST">
|
<form action="/commandeCrepe" method="POST">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<label for="garniture">Sur votre crepe</label>
|
<label for="garniture">Sur votre crepe</label>
|
||||||
|
|
Loading…
Reference in a new issue