"""
URL configuration for WordPress publishing endpoints
"""
from django.urls import path
from igny8_core.api.wordpress_publishing import (
    publish_single_content,
    bulk_publish_content,
    get_wordpress_status,
    get_wordpress_integrations,
    retry_failed_wordpress_sync,
)

urlpatterns = [
    # Single content publishing
    path('content/<int:content_id>/publish-to-wordpress/', 
         publish_single_content, 
         name='publish_single_content'),
    
    # Bulk content publishing
    path('content/bulk-publish-to-wordpress/', 
         bulk_publish_content, 
         name='bulk_publish_content'),
    
    # WordPress status
    path('content/<int:content_id>/wordpress-status/', 
         get_wordpress_status, 
         name='get_wordpress_status'),
    
    # WordPress integrations list
    path('wordpress-integrations/', 
         get_wordpress_integrations, 
         name='get_wordpress_integrations'),
    
    # Retry failed sync
    path('content/<int:content_id>/retry-wordpress-sync/', 
         retry_failed_wordpress_sync, 
         name='retry_failed_wordpress_sync'),
]