main
UI Deploy (Next-Auth Support) 🎨 / build-and-deploy (push) Has been cancelled

This commit is contained in:
Harun CAN
2026-05-11 08:00:13 +02:00
parent fc5ceeebb6
commit ecf0612205
2 changed files with 29 additions and 1 deletions
+10
View File
@@ -58,6 +58,16 @@ export const voiceboxApi = {
}
},
deleteHistory: async (id: string) => {
try {
const response = await clientMap.core.delete(`/voicebox/history/${id}`);
return response.data;
} catch (error) {
console.error(`Error deleting VoiceBox history for ${id}:`, error);
throw error;
}
},
getAudioUrl: (generationId: string) => {
// API endpoint for `<audio src="...">` tag
return `${process.env.NEXT_PUBLIC_CORE_API_URL || 'http://localhost:3000/api'}/voicebox/audio/${generationId}`;