28 lines
685 B
Python
28 lines
685 B
Python
from django.urls import path
|
|
from . import views, cron_views
|
|
|
|
app_name = "manage_notifications_api"
|
|
|
|
urlpatterns = [
|
|
path(
|
|
"toggle-notification-setting/",
|
|
views.NotificationSettingToggle.as_view(),
|
|
name="toggle-notification-setting",
|
|
),
|
|
path(
|
|
"user-notifications/",
|
|
views.UserNotificationsAPIView.as_view(),
|
|
name="user-notifications",
|
|
),
|
|
path(
|
|
"in-app-notifications/",
|
|
views.InAppNotificationListAPIView.as_view(),
|
|
name="in_app_notifications",
|
|
),
|
|
path(
|
|
"one-week-alert/",
|
|
cron_views.OneWeekSubscriptionAlertView.as_view(),
|
|
name="in_app_notifications",
|
|
),
|
|
]
|