Ajout d'un message de succès lors de la création d'une vidéo dans la route GET /projects/:id/create-video
This commit is contained in:
@@ -54,6 +54,7 @@ router.get('/projects/:id/create-video', async (req, res) => {
|
|||||||
try {
|
try {
|
||||||
const videoPath = await video.createVideo(projectId);
|
const videoPath = await video.createVideo(projectId);
|
||||||
res.json(videoPath);
|
res.json(videoPath);
|
||||||
|
res.status(200).json({ message: 'Video created successfully', videoPath });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
serverError.sendError('Error creating video:', res, error);
|
serverError.sendError('Error creating video:', res, error);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user