Align podcast chart preview route and preview URL handling

This commit is contained in:
ي
2026-04-20 08:21:59 +05:30
parent ba9ddbf368
commit 7c2a185a29
2 changed files with 15 additions and 5 deletions

View File

@@ -967,8 +967,10 @@ export const podcastApi = {
chart_data: Record<string, any>;
chart_type: string;
title: string;
}): Promise<{ image_url: string; preview_url: string; chart_id: string }> {
const response = await aiApiClient.post('/api/podcast/chart/preview', params);
}): Promise<{ preview_url: string; chart_id: string }> {
// Canonical backend endpoint from api/podcast/handlers/broll.py after router prefix composition:
// /api/podcast (main router) + /broll (handler prefix) + /preview/chart (endpoint)
const response = await aiApiClient.post('/api/podcast/broll/preview/chart', params);
return response.data;
},
};