From 8b6ec72eb9e72397566114ffd50f70b0879c1aef Mon Sep 17 00:00:00 2001 From: Kerboul Date: Thu, 16 Jan 2025 22:16:00 +0000 Subject: [PATCH] =?UTF-8?q?Correction=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 19b9bd2..399d25b 100644 --- a/routes/api.js +++ b/routes/api.js @@ -532,7 +532,7 @@ router.delete('/videos/:id', (req, res) => { * description: Image not found */ router.get('/smile', (req, res) => { - const imagePath = path.join(__dirname, '/home/timelapse/storage/smile.jpg'); + const imagePath = path.join('/storage/smile.jpg'); fs.access(imagePath, fs.constants.F_OK, (err) => { if (err) { console.error('Image not found:', err);