From a286612f47dcd01152e88e0715b8497c85fd80c9 Mon Sep 17 00:00:00 2001 From: Kerboul Date: Thu, 16 Jan 2025 19:32:13 +0000 Subject: [PATCH] =?UTF-8?q?Modification=20du=20chemin=20d'acc=C3=A8s=20?= =?UTF-8?q?=C3=A0=20l'image=20'smile.jpg'=20dans=20api.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api.js b/routes/api.js index 26ec23a..6f05788 100644 --- a/routes/api.js +++ b/routes/api.js @@ -495,7 +495,7 @@ router.delete('/videos/:id', (req, res) => { * description: Image not found */ router.get('/smile', (req, res) => { - const imagePath = path.join(__dirname, '../storage/smile.jpg'); + const imagePath = path.join(__dirname, '/home/timelapse/storage/smile.jpg'); fs.access(imagePath, fs.constants.F_OK, (err) => { if (err) { console.error('Image not found:', err);