urls.py 705 Bytes
Newer Older
Tom van Bussel's avatar
Tom van Bussel committed
1
from django.urls import path, include, re_path
2
3
4

from . import views

5
6
app_name = "photos"

7
urlpatterns = [
Tom van Bussel's avatar
Tom van Bussel committed
8
9
10
11
12
13
14
15
16
17
18
19
20
    path('', views.index, name='index'),
    path('<slug>/', include([
        path('', views.album, name='album'),
        path('download/', include([
            path('', views.album_download, name='album-download'),
            path('<filename>', views.download, name='download'),
            path('<token>/', include([
                path('', views.shared_album_download, name='shared-album-download'),
                path('<filename>', views.shared_download, name='shared-download'),
            ])),
        ])),
        path('<token>/', views.shared_album, name='shared-album'),
    ])),
21
]