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