Author description generator
[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.urls import path
5 from . import views
6
7
8 urlpatterns = [
9     path('preview/', views.preview_from_xml, name='cover_preview'),
10     path('preview/<slug:book>/', views.preview, name='cover_preview'),
11     path('preview/<slug:book>/<slug:chunk>/',
12             views.preview, name='cover_preview'),
13     path('preview/<slug:book>/<slug:chunk>/<int:rev>/',
14             views.preview, name='cover_preview'),
15
16     path('image/', views.image_list, name='cover_image_list'),
17     path('image/<int:pk>/', views.image, name='cover_image'),
18     path('image/<int:pk>/file/', views.image_file, name='cover_file'),
19     path('add_image/', views.add_image, name='cover_add_image'),
20     path('quick-import/<int:pk>/', views.quick_import, name='cover_quick_import'),
21 ]