Correction du chemin d'accès à l'image 'smile.jpg' dans api.js
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user