20 lines
621 B
Python
20 lines
621 B
Python
"""Collection common urlpaths."""
|
|
from rest_framework.routers import SimpleRouter
|
|
from django.urls import path
|
|
|
|
from collection.views import back as views
|
|
|
|
app_name = 'collection'
|
|
|
|
router = SimpleRouter()
|
|
router.register(r'collections', views.CollectionBackOfficeViewSet)
|
|
|
|
urlpatterns = [
|
|
path('guides/', views.GuideListCreateView.as_view(),
|
|
name='guide-list-create'),
|
|
path('guides/<int:pk>/', views.GuideElementListView.as_view(),
|
|
name='guide-element-list'),
|
|
path('guides/<int:pk>/filters/', views.GuideFilterCreateView.as_view(),
|
|
name='guide-filter-list-create'),
|
|
] + router.urls
|