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