User list sorted by last activity.
[redakcja.git] / src / cover / urls.py
1 # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
3 #
4 from django.conf.urls import url
5 from . import views
6
7
8 urlpatterns = [
9     url(r'^preview/$', views.preview_from_xml, name='cover_preview'),
10     url(r'^preview/(?P<book>[^/]+)/$', views.preview, name='cover_preview'),
11     url(r'^preview/(?P<book>[^/]+)/(?P<chunk>[^/]+)/$',
12             views.preview, name='cover_preview'),
13     url(r'^preview/(?P<book>[^/]+)/(?P<chunk>[^/]+)/(?P<rev>\d+)/$',
14             views.preview, name='cover_preview'),
15
16     url(r'^image/$', views.image_list, name='cover_image_list'),
17     url(r'^image/(?P<pk>\d+)/?$', views.image, name='cover_image'),
18     url(r'^image/(?P<pk>\d+)/file/', views.image_file, name='cover_file'),
19     url(r'^add_image/$', views.add_image, name='cover_add_image'),
20 ]