Add public shareable link for galleries

This commit is contained in:
krek0 2026-04-20 22:29:17 +02:00
parent b76a350c28
commit a875c2707b
7 changed files with 126 additions and 14 deletions

View file

@ -8,6 +8,8 @@ from .views import (
GalleryArchiveIndexView,
GalleryDetailView,
GalleryDownload,
GalleryPublicView,
GalleryTokenView,
GalleryUpload,
GalleryYearArchiveView,
PhotoDeleteView,
@ -40,4 +42,6 @@ urlpatterns = [
path("photo/<int:pk>/delete/", PhotoDeleteView.as_view(), name="pl-photo-delete"),
path("photo/<int:pk>/report/", PhotoReportView.as_view(), name="pl-photo-report"),
path("upload/", GalleryUpload.as_view(), name="pl-gallery-upload"),
path("share/<uuid:token>/", GalleryPublicView.as_view(), name="pl-gallery-public"),
path("gallery/<slug:slug>/token/", GalleryTokenView.as_view(), name="pl-gallery-token"),
]