16 lines
579 B
Python
16 lines
579 B
Python
"""Gallery urlpaths."""
|
|
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
app_name = 'gallery'
|
|
|
|
urlpatterns = [
|
|
path('', views.ImageListCreateView.as_view(), name='list-create'),
|
|
path('for_establishment/<int:establishment_id>/', views.MediaForEstablishmentView.as_view(),
|
|
name='establishment-media'),
|
|
path('media/<int:pk>/', views.MediaUpdateView.as_view(), name='media-update'),
|
|
path('<int:pk>/', views.ImageRetrieveDestroyView.as_view(), name='retrieve-destroy'),
|
|
path('<int:pk>/crop/', views.CropImageCreateView.as_view(), name='create-crop'),
|
|
]
|