Correction du chemin d'accès à l'image 'smile.jpg' dans api.js

This commit is contained in:
2025-01-16 22:16:00 +00:00
parent 0e562b373e
commit 8b6ec72eb9

View File

@@ -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);