gault-millau/apps/collection/urls/back.py
2019-12-18 15:19:04 +03:00

20 lines
634 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>/elements/', views.GuideElementListView.as_view(),
# name='guide-element-list'),
path('guides/<int:pk>/filters/', views.GuideFilterCreateView.as_view(),
name='guide-filter-list-create'),
] + router.urls