12 lines
288 B
Python
12 lines
288 B
Python
"""Gallery urlpaths."""
|
|
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
app_name = 'gallery'
|
|
|
|
urlpatterns = [
|
|
path('', views.ImageListCreateView.as_view(), name='list-create-image'),
|
|
path('<int:pk>/', views.ImageRetrieveDestroyView.as_view(), name='retrieve-destroy-image'),
|
|
]
|