"""
Dashboard URL Configuration
"""

from django.urls import path, include, re_path

app_name = "dashboard"

from .views import (
    DashboardView, CommentsAnalyzerView, VideoAnalysisView, 
    MediaPlanningView, VideoSubtitlesView, PiracyControlView,  
    ReportView, MusicRemovalView, DynamicAdInsertionView,
    get_categories, get_brands_by_category
)

urlpatterns = [
    path('', DashboardView.as_view(), name='index'),
    path('piracy-control', PiracyControlView.as_view(), name='piracy-control'), 
    path('report/<str:show_name>/', ReportView.as_view(), name='report'),
    path('media-planning', MediaPlanningView.as_view(), name='media-planning'), 
    path('analyze-video', VideoAnalysisView.as_view(), name='analyze-video'),
    path('dynamic-ad-insertion', DynamicAdInsertionView.as_view(), name='dynamic-ad-insertion'),
    path('music-removal', MusicRemovalView.as_view(), name='music-removal'),
    path('comments-analyzer', CommentsAnalyzerView.as_view(), name='comments-analyzer'),
    path('video-subtitles', VideoSubtitlesView.as_view(), name='video-subtitles'),
    path('api/get_categories/', get_categories, name='get_categories'),
    path('api/get_brands_by_category/<str:category_id>/', get_brands_by_category, name='get_brands_by_category'),
]
