2022-06-21 14:40:21 +02:00
|
|
|
from rest_framework import routers
|
|
|
|
|
|
|
|
from .views import (
|
|
|
|
ImportedPodcastViewSet,
|
|
|
|
PodcastEpisodeViewSet,
|
|
|
|
PodcastViewSet,
|
|
|
|
StationPodcastViewSet,
|
|
|
|
)
|
|
|
|
|
2022-07-22 17:34:09 +02:00
|
|
|
router = routers.DefaultRouter(trailing_slash=False)
|
2022-06-21 14:40:21 +02:00
|
|
|
router.register("podcast-episodes", PodcastEpisodeViewSet)
|
|
|
|
router.register("podcasts", PodcastViewSet)
|
|
|
|
router.register("station-podcasts", StationPodcastViewSet)
|
|
|
|
router.register("imported-podcasts", ImportedPodcastViewSet)
|
2022-07-19 18:38:17 +02:00
|
|
|
|
|
|
|
urls = router.urls
|