aboutsummaryrefslogtreecommitdiff
path: root/src/django_pgpmailman/urls.py
diff options
context:
space:
mode:
authorJ08nY2017-08-11 20:29:28 +0200
committerJ08nY2017-08-11 20:29:28 +0200
commitb6df3c3cdcb4ca25b48cc316502ec39482afe20e (patch)
treeb52d26b7a08c8aa127ff5ce477ac921dc80e576f /src/django_pgpmailman/urls.py
parent7b05d2311f3b1727d9567c21f6d9eaac518ef187 (diff)
downloaddjango-pgpmailman-b6df3c3cdcb4ca25b48cc316502ec39482afe20e.tar.gz
django-pgpmailman-b6df3c3cdcb4ca25b48cc316502ec39482afe20e.tar.zst
django-pgpmailman-b6df3c3cdcb4ca25b48cc316502ec39482afe20e.zip
Diffstat (limited to 'src/django_pgpmailman/urls.py')
-rw-r--r--src/django_pgpmailman/urls.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/django_pgpmailman/urls.py b/src/django_pgpmailman/urls.py
index 0a90cb5..d10fa1c 100644
--- a/src/django_pgpmailman/urls.py
+++ b/src/django_pgpmailman/urls.py
@@ -17,10 +17,17 @@
# this program. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import, unicode_literals
-from django.conf.urls import url
+from django.conf.urls import url, include
-from django_pgpmailman.views.list import pgp_list_index
+from django_pgpmailman.views.list import (pgp_list_index, pgp_list_summary,
+ pgp_list_pubkey)
+
+list_patterns = [
+ url(r'^$', pgp_list_summary, name='pgp_list_summary'),
+ url(r'^pubkey$', pgp_list_pubkey, name='pgp_list_pubkey')
+]
urlpatterns = [
- url(r'^$', pgp_list_index, name='pgp_list_index')
+ url(r'^$', pgp_list_index, name='pgp_list_index'),
+ url(r'^lists/(?P<list_id>[^/]+)/', include(list_patterns))
]