summaryrefslogtreecommitdiff
path: root/app/lttr/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/lttr/urls.py')
-rw-r--r--app/lttr/urls.py32
1 files changed, 3 insertions, 29 deletions
diff --git a/app/lttr/urls.py b/app/lttr/urls.py
index b4485d2..abeac11 100644
--- a/app/lttr/urls.py
+++ b/app/lttr/urls.py
@@ -6,32 +6,17 @@ app_name = "lttr"
urlpatterns = [
path(
- r'feed.xml',
- views.NewsletterRSSFeedView(),
- name="feed"
- ),
- path(
- 'unsubscribe/<str:activation_code>',
+ '<str:slug>/unsubscribe/<str:activation_code>',
views.UnsubscribeRequestView.as_view(),
name='newsletter_unsubscribe'
),
path(
- r'<int:issue>/<str:mailing>',
- views.NewsletterMailingDetail.as_view(),
- name="detail"
- ),
- path(
- r'subscribe/',
+ r'<str:slug>/subscribe/',
views.NewsletterSubscribeView.as_view(),
name="subscribe"
),
path(
- r'<int:page>',
- views.NewsletterListView.as_view(),
- name="list"
- ),
- path(
- 'activate/<str:activation_code>/',
+ '<str:slug>/activate/<str:activation_code>/',
views.ConfirmSubscriptionView.as_view(), name='newsletter_activate'
),
path(
@@ -39,15 +24,4 @@ urlpatterns = [
views.NewsletterSubscribedView.as_view(),
name="subscribed"
),
- path(
- r'',
- views.NewsletterListView.as_view(),
- {'page': 1},
- name="list"
- ),
- path(
- r'',
- views.NewsletterOptionsView.as_view(),
- name="newsletters"
- ),
]