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

app_name = 'influencers'

# Router for ViewSets
router = DefaultRouter()
router.register(r'profiles', views.InfluencerProfileViewSet, basename='profile')
router.register(r'media-posts', views.MediaPostViewSet, basename='mediapost')

urlpatterns = [
    # Instagram OAuth
    path('instagram/connect-url/', views.instagram_connect_url, name='instagram_connect_url'),
    path('instagram/callback/', views.instagram_callback, name='instagram_callback'),

    # Utility
    path('niches/', views.get_available_niches, name='niches'),

    # Collaborations
    path('collaborations/', views.influencer_collaborations, name='influencer-collaborations'),
    path('collaborations/<int:pk>/respond/', views.respond_to_collaboration, name='respond-collaboration'),

    # Include router URLs
    path('', include(router.urls)),
]







