diff options
author | lxf <sng@luxagraf.net> | 2022-05-14 16:38:07 -0400 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2022-05-14 16:38:07 -0400 |
commit | bb3973ffb714c932e9ec6dd6a751228dc71fe1d3 (patch) | |
tree | 6fa32f9392ad2ec32271349b86a4c1388fd6ba95 /app/lttr/urls.py |
initial commit
Diffstat (limited to 'app/lttr/urls.py')
-rw-r--r-- | app/lttr/urls.py | 27 |
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" + ), +] |