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

This commit is contained in:
2025-01-16 19:32:13 +00:00
parent 6ad9bd65bd
commit a286612f47

View File

@@ -495,7 +495,7 @@ router.delete('/videos/:id', (req, res) => {
* description: Image not found * description: Image not found
*/ */
router.get('/smile', (req, res) => { 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) => { fs.access(imagePath, fs.constants.F_OK, (err) => {
if (err) { if (err) {
console.error('Image not found:', err); console.error('Image not found:', err);