-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathurls.py
More file actions
37 lines (34 loc) · 1021 Bytes
/
urls.py
File metadata and controls
37 lines (34 loc) · 1021 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from django.urls import path
from .views import (
AddSubscriptionView,
PackageSubscriptionView,
RemoveSubscriptionView,
SetNotificationEmailView,
SubscriptionCenterView,
ToggleAutoSubscribeView,
ToggleReceiveEmailNotificationsView,
)
app_name = "subscriptions"
urlpatterns = [
path("", SubscriptionCenterView.as_view(), name="center"),
path("add/", AddSubscriptionView.as_view(), name="add"),
path("remove/", RemoveSubscriptionView.as_view(), name="remove"),
path(
"toggle-auto-subscribe/",
ToggleAutoSubscribeView.as_view(),
name="toggle_auto_subscribe",
),
path(
"toggle-receive-email-notifications/",
ToggleReceiveEmailNotificationsView.as_view(),
name="toggle_receive_email_notifications",
),
path(
"set-email/",
SetNotificationEmailView.as_view(),
name="set_email",
),
path(
"package/<str:package_name>/", PackageSubscriptionView.as_view(), name="package"
),
]