mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 17:26:23 +02:00
feat: add transcript fetching and display in podcast player component
This commit is contained in:
parent
783ee9c154
commit
4f2c9caac2
2 changed files with 58 additions and 18 deletions
|
|
@ -62,6 +62,13 @@ class PodcastsApiService {
|
|||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* Get a podcast by its ID (includes full transcript)
|
||||
*/
|
||||
getPodcastById = async (podcastId: number) => {
|
||||
return baseApiService.get(`/api/v1/podcasts/${podcastId}`, podcast);
|
||||
};
|
||||
|
||||
generatePodcast = async (request: GeneratePodcastRequest) => {
|
||||
// Validate the request
|
||||
const parsedRequest = generatePodcastRequest.safeParse(request);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue