From b0bf7e9f04cc46656593cfa512d0cdb794face7b Mon Sep 17 00:00:00 2001 From: Kerboul Date: Wed, 15 Jan 2025 11:20:36 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20d'un=20message=20de=20succ=C3=A8s=20lor?= =?UTF-8?q?s=20de=20la=20cr=C3=A9ation=20d'une=20vid=C3=A9o=20dans=20la=20?= =?UTF-8?q?route=20GET=20/projects/:id/create-video?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/api.js | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/api.js b/routes/api.js index 987080c..3826402 100644 --- a/routes/api.js +++ b/routes/api.js @@ -54,6 +54,7 @@ router.get('/projects/:id/create-video', async (req, res) => { try { const videoPath = await video.createVideo(projectId); res.json(videoPath); + res.status(200).json({ message: 'Video created successfully', videoPath }); } catch (error) { serverError.sendError('Error creating video:', res, error); }