mirror of
https://github.com/R0m1k3/podcastic.git
synced 2026-10-22 22:48:03 +02:00
feat: implement podcast discovery and management controllers and services
This commit is contained in:
1 parent
7923f4cf09
commit
a993e2d658
11 files changed
+318
-183
No files matched your search
@@ -30,9 +30,9 @@ export const discoveryService = {
|
||||
return response.data;
|
||||
},
|
||||
|
||||
getTrendingPodcasts: async (limit: number = 20): Promise<DiscoveryResponse> => {
|
||||
getTrendingPodcasts: async (limit: number = 20, genre?: string): Promise<DiscoveryResponse> => {
|
||||
const response = await api.get('/podcasts/trending', {
|
||||
params: { limit },
|
||||
params: { limit, genre },
|
||||
});
|
||||
return response.data;
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user