/ méthode PUT
app.put('/api/movies/:id', (req, res) => {
const idMovie = req.params.id;
const formData = req.body;
connection.query('UPDATE movie SET ? WHERE id = ?', [formData, idMovie], err => {
if (err) {
console.log(err);
res.status(500).send("Erreur lors de la modification d'un film");
} else {
res.sendStatus(200);
}
});
});