mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-10-06 22:32:41 +07:00
fix: Change endpoint save_chapters to chapters [POST]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user