Allow empty value in metadata
[redakcja.git] / apps / cover / urls.py
index 24d7448..2337d47 100644 (file)
@@ -1,4 +1,8 @@
-# -*- coding: utf-8
+# -*- coding: utf-8 -*-
+#
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
 from django.conf.urls.defaults import patterns, url
 
 
 from django.conf.urls.defaults import patterns, url
 
 
@@ -9,4 +13,8 @@ urlpatterns = patterns('cover.views',
             'preview', name='cover_preview'),
     url(r'^preview/(?P<book>[^/]+)/(?P<chunk>[^/]+)/(?P<rev>\d+)/$',
             'preview', name='cover_preview'),
             'preview', name='cover_preview'),
     url(r'^preview/(?P<book>[^/]+)/(?P<chunk>[^/]+)/(?P<rev>\d+)/$',
             'preview', name='cover_preview'),
+
+    url(r'^image/$', 'image_list', name='cover_image_list'),
+    url(r'^image/(?P<pk>\d+)/?$', 'image', name='cover_image'),
+    url(r'^add_image/$', 'add_image', name='cover_add_image'),
 )
 )