urls.py 378 Bytes
Newer Older
1
"""The routes defined by the documents package"""
2
from django.urls import path, include
3
4
5

from . import views

6
app_name = "documents"
7

8
urlpatterns = [
9
10
11
12
13
14
    path('documents/', include([
        path('document/<int:pk>/',
             views.DocumentDownloadView.as_view(), name='document'),
        path('',
             views.DocumentsIndexView.as_view(), name='index'),
    ]))
15
]