summaryrefslogtreecommitdiff
path: root/app/publications/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/publications/urls.py')
-rw-r--r--app/publications/urls.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/app/publications/urls.py b/app/publications/urls.py
new file mode 100644
index 0000000..3f43b32
--- /dev/null
+++ b/app/publications/urls.py
@@ -0,0 +1,24 @@
+from django.urls import path
+
+from . import views
+
+app_name = "publications"
+
+urlpatterns = [
+ path(
+ r'',
+ views.PubListView.as_view(),
+ {'page': 1},
+ name="list"
+ ),
+ path(
+ r'<int:page>/',
+ views.PubListView.as_view(),
+ name="list"
+ ),
+ path(
+ r'<str:slug>',
+ views.PubsDetailView.as_view(),
+ name="pub-detail"
+ ),
+]