"""
Integration URLs
Phase 6: Site Integration & Multi-Destination Publishing
"""
from django.urls import path, include
from rest_framework.routers import DefaultRouter

from igny8_core.modules.integration.views import IntegrationViewSet
from igny8_core.modules.integration.webhooks import (
    wordpress_status_webhook,
    wordpress_metadata_webhook,
)

router = DefaultRouter()
router.register(r'integrations', IntegrationViewSet, basename='integration')

urlpatterns = [
    path('', include(router.urls)),
    
    # Webhook endpoints
    path('webhooks/wordpress/status/', wordpress_status_webhook, name='wordpress-status-webhook'),
    path('webhooks/wordpress/metadata/', wordpress_metadata_webhook, name='wordpress-metadata-webhook'),
]

