from __future__ import annotations

from django.urls import path

from . import views

urlpatterns = [
    path("", views.notification_list, name="notification-list"),
    path("count/", views.notification_count, name="notification-count"),
    path("read-all/", views.notification_mark_all_read, name="notification-read-all"),
    path("preferences/", views.notification_preferences_list, name="notification-preferences"),
    path("preferences/<str:kind>/", views.notification_preferences_detail, name="notification-preferences-detail"),
    path("quiet-hours/", views.notification_quiet_hours, name="notification-quiet-hours"),
    path("<int:pk>/", views.notification_detail, name="notification-detail"),
    path("<int:pk>/read/", views.notification_mark_read, name="notification-read"),
    path("<int:pk>/delete/", views.notification_delete, name="notification-delete"),
    # Web Push
    path("push/vapid-public-key/", views.notification_vapid_public_key, name="notification-vapid-key"),
    path("push/subscribe/", views.notification_push_subscribe, name="notification-push-subscribe"),
    path("push/subscribe/<str:pk>/", views.notification_push_unsubscribe, name="notification-push-unsubscribe"),
]
