"""
Notifications URL Configuration

This module defines URL patterns for the notifications application,
including web views and API endpoints for notification management.
"""

from django.urls import path, include
from . import views

app_name = 'notifications'

urlpatterns = [
    # Web interface URLs
    path('channels', views.NotificationChannelListView.as_view(), name='channel_list'),
    path('channels/create/', views.NotificationChannelCreateView.as_view(), name='channel_create'),
    path('channels/<uuid:pk>/edit/', views.NotificationChannelUpdateView.as_view(), name='channel_update'),

    path('notifications/', views.NotificationListView.as_view(), name='notification_list'),
    path('notifications/create/', views.NotificationCreateView.as_view(), name='notification_create'),

    path('rules/', views.NotificationRuleListView.as_view(), name='rule_list'),
    path('rules/create/', views.NotificationRuleCreateView.as_view(), name='rule_create'),
    path('rules/<uuid:pk>/edit/', views.NotificationRuleUpdateView.as_view(), name='rule_update'),

    path('templates/create/', views.NotificationTemplateCreateView.as_view(), name='template_create'),
    path('templates/<uuid:pk>/edit/', views.NotificationTemplateUpdateView.as_view(), name='template_update'),

    path('live/', views.live_notifications, name='live_notifications'),
    
    # API endpoints
    path('api/', include('apps.notifications.api.urls')),
]



    
    