aboutsummaryrefslogtreecommitdiff
path: root/src/django_pgpmailman/urls.py
diff options
context:
space:
mode:
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))
]