fix: Change endpoint save_chapters to chapters [POST]

This commit is contained in:
Yiannis Christodoulou
2025-09-16 09:55:15 +03:00
parent 0dda684c3f
commit 6eab5bf7b7
5 changed files with 26 additions and 25 deletions
@@ -768,8 +768,9 @@ const useVideoChapters = () => {
// Convert chapters to backend expected format
const backendChapters = chapters.map((chapter) => ({
start: chapter.from,
title: chapter.name,
startTime: chapter.from,
endTime: chapter.to,
text: chapter.name,
}));
// Create the API request body