19 lines
659 B
Python
19 lines
659 B
Python
"""Collection common urlpaths."""
|
|
from django.urls import path
|
|
|
|
from collection.views import common as views
|
|
|
|
app_name = 'collection'
|
|
|
|
urlpatterns = [
|
|
path('', views.CollectionListView.as_view(), name='list'),
|
|
path('<int:pk>/', views.CollectionRetrieveView.as_view(), name='detail'),
|
|
|
|
path('items/', views.CollectionItemListView.as_view(), name='collection-items-list'),
|
|
path('items/<int:pk>/', views.CollectionItemRetrieveView.as_view(),
|
|
name='collection-items-detail'),
|
|
|
|
path('guides/', views.GuideListView.as_view(), name='guides-list'),
|
|
path('guides/<int:pk>/', views.GuideRetrieveView.as_view(), name='guides-detail'),
|
|
]
|