17 lines
388 B
Python
17 lines
388 B
Python
"""Collection common urlpaths."""
|
|
from django.urls import path
|
|
from rest_framework.routers import SimpleRouter
|
|
|
|
from collection.views import back as views
|
|
|
|
app_name = 'collection'
|
|
router = SimpleRouter()
|
|
router.register(r'', views.CollectionBackOfficeViewSet)
|
|
|
|
urlpatterns = [
|
|
path('<int:pk>/', views.CollectionBackOfficeView.as_view(), name='detail'),
|
|
]
|
|
|
|
urlpatterns += router.urls
|
|
|