diff --git a/routes/videoRoutes.js b/routes/videoRoutes.js index a0253a7..a4c2730 100644 --- a/routes/videoRoutes.js +++ b/routes/videoRoutes.js @@ -370,7 +370,7 @@ router.get('/cat', (_, res) => { console.error('Video not found:', err); return res.status(404).json({ error: 'Video not found' }); } - res.sendFile(videoPath); + res.download(videoPath); }); });