2022-12-18 09:24:55 +01:00
|
|
|
from django.urls import path
|
|
|
|
|
|
|
|
from .views import (
|
|
|
|
ImageUploadView,
|
2022-12-25 13:49:44 +01:00
|
|
|
PublicImageListView,
|
2022-12-27 22:09:10 +01:00
|
|
|
MyImagesListView,
|
|
|
|
GalleryCreateView,
|
|
|
|
MyGalleriesListView,
|
|
|
|
GalleryDetailView,
|
|
|
|
ImageDetailView,
|
|
|
|
GainAccessToGalleryView,
|
|
|
|
VisitorSettingsView,
|
|
|
|
RevokeAccessToGallery
|
2022-12-18 09:24:55 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path('', PublicImageListView.as_view(), name='home'),
|
2022-12-25 13:49:44 +01:00
|
|
|
path('upload/', ImageUploadView.as_view(), name='upload_image'),
|
2022-12-27 22:09:10 +01:00
|
|
|
path('my_images/', MyImagesListView.as_view(), name='my_images'),
|
|
|
|
path('create_gallery/', GalleryCreateView.as_view(), name='create_gallery'),
|
|
|
|
path('my_galleries/', MyGalleriesListView.as_view(), name='my_galleries'),
|
|
|
|
path('gallery/<int:pk>', GalleryDetailView.as_view(), name='gallery'),
|
|
|
|
path('image/<int:pk>', ImageDetailView.as_view(), name='image'),
|
|
|
|
path('gallery/gain_access/<int:gallery_id>/', GainAccessToGalleryView.as_view(), name='gallery_gain_access'),
|
|
|
|
path('visitor/my_profile', VisitorSettingsView.as_view(), name='visitor_profile'),
|
|
|
|
path('gallery/revoke_access/<int:gallery_id>/<int:visitor_id>', RevokeAccessToGallery.as_view(), name='gallery_revoke_access'),
|
2022-12-18 09:24:55 +01:00
|
|
|
]
|