summaryrefslogtreecommitdiff
path: root/app/lttr/urls.py
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2022-05-14 16:38:07 -0400
committerlxf <sng@luxagraf.net>2022-05-14 16:38:07 -0400
commitbb3973ffb714c932e9ec6dd6a751228dc71fe1d3 (patch)
tree6fa32f9392ad2ec32271349b86a4c1388fd6ba95 /app/lttr/urls.py
initial commit
Diffstat (limited to 'app/lttr/urls.py')
-rw-r--r--app/lttr/urls.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/app/lttr/urls.py b/app/lttr/urls.py
new file mode 100644
index 0000000..abeac11
--- /dev/null
+++ b/app/lttr/urls.py
@@ -0,0 +1,27 @@
+from django.urls import path, re_path
+
+from . import views
+
+app_name = "lttr"
+
+urlpatterns = [
+ path(
+ '<str:slug>/unsubscribe/<str:activation_code>',
+ views.UnsubscribeRequestView.as_view(),
+ name='newsletter_unsubscribe'
+ ),
+ path(
+ r'<str:slug>/subscribe/',
+ views.NewsletterSubscribeView.as_view(),
+ name="subscribe"
+ ),
+ path(
+ '<str:slug>/activate/<str:activation_code>/',
+ views.ConfirmSubscriptionView.as_view(), name='newsletter_activate'
+ ),
+ path(
+ r'subscribed/',
+ views.NewsletterSubscribedView.as_view(),
+ name="subscribed"
+ ),
+]