# social/urls.py - Unified URLs for all platforms
from django.urls import path
from django.views.decorators.csrf import csrf_exempt
from . import views

app_name = 'social'

urlpatterns = [
    # Dashboard
    path('', views.dashboard, name='dashboard'),
    path('dashboard/<str:platform_type>/', views.dashboard, name='dashboard_platform'),
    
    # Comments
    path('<str:platform_type>/comments/', views.comments_list, name='comments_list'),
    path('<str:platform_type>/comments/export/', views.export_comments_csv, name='export_comments_csv'),
    path('<str:platform_type>/comment/<str:comment_id>/', views.comment_detail, name='comment_detail'),
    
    # Sync
    path('<str:platform_type>/sync/', views.manual_sync, name='sync'),
    path('<str:platform_type>/sync/<str:sync_type>/', views.manual_sync, name='sync_type'),
    
    # OAuth
    path('auth/<str:platform_type>/', views.auth_start, name='auth_start'),
    path('callback/<str:platform_type>/', views.auth_callback, name='auth_callback'),
    
    # Webhooks
    path('webhooks/META/', csrf_exempt(views.meta_webhook), name='meta_webhook'),
    
    # LinkedIn Webhook Path
    path('webhooks/linkedin/', csrf_exempt(views.linkedin_webhook), name='linkedin_webhook'),
]
