"""
URL Configuration for Notifications REST API

This module defines URL patterns for the notifications REST API,
providing RESTful endpoints for notification management.
"""

from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

# Create router and register viewsets
router = DefaultRouter()
router.register(r'channels', views.NotificationChannelViewSet)
router.register(r'templates', views.NotificationTemplateViewSet)
router.register(r'notifications', views.NotificationViewSet)
router.register(r'rules', views.NotificationRuleViewSet)

# URL patterns
urlpatterns = [
    path('', include(router.urls)),
    path('send/', views.send_notification, name='send_notification'),
    path('live/', views.live_notifications, name='live_notifications'),
]
