# urls.py
from django.urls import path,include
from .views import SendEmailNotificationView, SendAppNotificationView, NotificationsCreateView,NotificationCreateView,NotificationtypeCreateView,NotificationReceiverCreateView,ReadNotificationsView,DeleteNotificationView,PaginatedNotificationReceiverView,NotificationtypeAdminViewSet
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register(r'admin/notification-types', NotificationtypeAdminViewSet, basename='notificationtype')

urlpatterns = [
    path('send-email', SendEmailNotificationView.as_view(), name='send-email'),
    path('send-app', SendAppNotificationView.as_view(), name='send-app'),
    path('notification', NotificationCreateView.as_view(), name='create-notification'),
    path('notificationtype', NotificationtypeCreateView.as_view(), name='create-notificationtype'),
    path('notifications', NotificationsCreateView.as_view(), name='create-notification'),
    path('notification-receiver', NotificationReceiverCreateView.as_view(), name='create-notification-receiver'),  
    path('read-notifications/<int:user_id>/', ReadNotificationsView.as_view(), name='read-notifications'),  
    path('delete-notification/<int:notification_id>/', DeleteNotificationView.as_view(), name='delete-notification'),
    path('received-notifications/<int:user_id>/', PaginatedNotificationReceiverView.as_view(), name='received-notifications'),
    path('', include(router.urls)), 
]