From d71de3e33cc0adbfbe6d48c8a8e0a0a859e48eac Mon Sep 17 00:00:00 2001 From: Kerboul Date: Wed, 15 Jan 2025 09:18:18 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20des=20chemins=20d'acc=C3=A8s=20aux?= =?UTF-8?q?=20r=C3=A9pertoires=20dans=20la=20route=20GET=20/projects/:id/c?= =?UTF-8?q?reate-video?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/api.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/api.js b/routes/api.js index 492c4f4..4ac73de 100644 --- a/routes/api.js +++ b/routes/api.js @@ -50,10 +50,10 @@ router.get('/projects', async (req, res) => { */ router.get('/projects/:id/create-video', async (req, res) => { const projectId = req.params.id; - const imageDir = path.join(__dirname, `/storage/${projectId}`); - const outputVideo = path.join(__dirname, `/storage/${projectId}/output_video.mp4`); + const imageDir = `/storage/${projectId}`; + const outputVideo = `/storage/${projectId}/output_video.mp4`; const frameRate = 24; - const tempFile = path.join(__dirname, `/storage/${projectId}/temp_file.txt`); + const tempFile = `/storage/${projectId}/temp_file.txt`; try { const images = fs.readdirSync(imageDir).filter(file => file.endsWith('.jpg'));