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:
@@ -30,8 +30,7 @@ interface AutoSaveResponse {
|
||||
// Auto-save API function
|
||||
export const autoSaveVideo = async (mediaId: string, data: AutoSaveRequest): Promise<AutoSaveResponse> => {
|
||||
try {
|
||||
const response = await fetch(`/api/v1/media/${mediaId}/save_chapters`, {
|
||||
// TODO: ask backend to add save_chapters endpoint
|
||||
const response = await fetch(`/api/v1/media/${mediaId}/chapters`, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify(data),
|
||||
|
||||
Reference in New Issue
Block a user