urls.py 635 Bytes
Newer Older
1
2
3
4
5
6
from django.conf.urls import url

from . import views


urlpatterns = [
Joost Rijneveld's avatar
Joost Rijneveld committed
7
    url(r'^download/(?P<path>.*)', views.download, name='download'),
8
9
    url(r'^shared-download/(?P<slug>[-\w]+)/(?P<token>[a-zA-Z0-9]+)/(?P<path>.*)', views.shared_download, name='shared-download'),
    url(r'^shared-thumbnail/(?P<slug>[-\w]+)/(?P<token>[a-zA-Z0-9]+)/(?P<size_fit>\d+x\d+_[01])/(?P<path>.*)', views.shared_thumbnail, name='shared-thumbnail'),
10
    url(r'^(?P<slug>[-\w]+)/$', views.album, name='album'),
11
    url(r'^(?P<slug>[-\w]+)/(?P<token>[a-zA-Z0-9]+)$', views.shared_album, name='shared_album'),
Joost Rijneveld's avatar
Joost Rijneveld committed
12
    url(r'^$', views.index, name='index'),
13
]