from django.urls import path
from . import views

urlpatterns = [
    # Notifications
    path('', views.list_notifications, name='list_notifications'),
    path('unread/', views.get_unread_count_view, name='get_unread_count'),
    path('<int:notification_id>/read/', views.mark_notification_as_read, name='mark_notification_as_read'),
    path('read-all/', views.mark_all_as_read, name='mark_all_as_read'),
    path('<int:notification_id>/delete/', views.delete_notification, name='delete_notification'),

    # Notification preferences
    path('preferences/', views.notification_preferences, name='notification_preferences'),
    path('user-preferences/<int:user_id>/', views.user_notification_preference, name='user_notification_preference'),
    path('category-preferences/<int:category_id>/', views.category_notification_preference, name='category_notification_preference'),

    # Follow requests
    path('follow-requests/', views.list_follow_requests, name='list_follow_requests'),
    path('follow-requests/sent/', views.list_sent_follow_requests, name='list_sent_follow_requests'),
    path('follow-requests/<int:request_id>/accept/', views.accept_follow_request, name='accept_follow_request'),
    path('follow-requests/<int:request_id>/reject/', views.reject_follow_request, name='reject_follow_request'),
    path('follow-requests/<int:request_id>/cancel/', views.cancel_follow_request, name='cancel_follow_request'),
]
