from django.urls import path, include
from rest_framework.routers import DefaultRouter

from .views import ChannelViewSet, CampaignViewSet, MediaAssetViewSet, PostViewSet

router = DefaultRouter()
router.register(r"disseminations/channels", ChannelViewSet, basename="dissemination-channel")
router.register(r"disseminations/campaigns", CampaignViewSet, basename="dissemination-campaign")
router.register(r"disseminations/media", MediaAssetViewSet, basename="dissemination-media")
router.register(r"disseminations/posts", PostViewSet, basename="dissemination-post")

urlpatterns = [
    path("", include(router.urls)),
]
