diff --git a/routes/api.js b/routes/api.js index 987080c..3826402 100644 --- a/routes/api.js +++ b/routes/api.js @@ -54,6 +54,7 @@ router.get('/projects/:id/create-video', async (req, res) => { try { const videoPath = await video.createVideo(projectId); res.json(videoPath); + res.status(200).json({ message: 'Video created successfully', videoPath }); } catch (error) { serverError.sendError('Error creating video:', res, error); }