rug-website/rugwebsite/urls.py

17 lines
808 B
Python
Raw Normal View History

2017-11-14 09:51:57 +01:00
from django.conf.urls import include, url
import django_saml2_pro_auth.urls as saml_urls
2018-05-17 11:36:03 +02:00
from rugwebsite.views import home, gdpr, gdpr_request_delete, gdpr_delete, gdpr_agree, gdpr_create_agree, \
gdpr_ask_agreement
2017-11-14 09:51:57 +01:00
urlpatterns = [
2018-05-04 15:09:27 +02:00
url(r'gdpr/$', gdpr, name='gdpr'),
2018-05-17 11:36:03 +02:00
url(r'gdpr-request-delete/$', gdpr_request_delete, name='gdpr-request-delete'),
url(r'gdpr-delete/(?P<email>[^/]+)/(?P<token>[a-zA-Z0-9]{32})/$', gdpr_delete, name='gdpr-delete'),
url(r'gdpr-agree/(?P<email>[^/]+)/(?P<token>[a-zA-Z0-9]{32})/$', gdpr_agree, name='gdpr-agree'),
url(r'gdpr-create-agree/$', gdpr_create_agree, name='gdpr-create-agree'),
url(r'gdpr-ask-for-agreement/$', gdpr_ask_agreement, name='gdpr-ask-for-agreement'),
2017-11-24 17:19:15 +01:00
url(r'', include(saml_urls, namespace='saml')),
url(r'$', home),
2017-11-14 09:51:57 +01:00
]