mirror of
https://github.com/R0m1k3/podcastic.git
synced 2026-10-24 15:38:03 +02:00
feat: implement podcast discovery with PodcastIndex API integration and Discover page
This commit is contained in:
1 parent
d7f158a498
commit
9bb61cc8a7
10 files changed
+1254
-5
No files matched your search
@@ -5,6 +5,9 @@ import {
|
||||
unsubscribe,
|
||||
searchPodcasts,
|
||||
getPodcast,
|
||||
discoverPodcasts,
|
||||
subscribeFromDiscovery,
|
||||
getTrendingPodcasts,
|
||||
} from '../controllers/podcastController';
|
||||
import { authenticate } from '../middleware/auth';
|
||||
|
||||
@@ -13,9 +16,12 @@ const router = Router();
|
||||
// Protected routes
|
||||
router.get('/subscriptions', authenticate, getUserSubscriptions);
|
||||
router.post('/subscribe', authenticate, subscribe);
|
||||
router.post('/subscribe-discovery', authenticate, subscribeFromDiscovery);
|
||||
router.delete('/:podcastId/unsubscribe', authenticate, unsubscribe);
|
||||
|
||||
// Public routes
|
||||
// Public/discovery routes
|
||||
router.get('/discover', discoverPodcasts);
|
||||
router.get('/trending', getTrendingPodcasts);
|
||||
router.get('/search', searchPodcasts);
|
||||
router.get('/:podcastId', getPodcast);
|
||||
|
||||
|
||||
Reference in new issue
Block a user