X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/bf99d8859b9b576381cde347bd8abd4544f09d38..746bfb66224e6a1065e5355ed63f9c4836b0a498:/src/catalogue/api/urls.py diff --git a/src/catalogue/api/urls.py b/src/catalogue/api/urls.py index 13cebead5..07729aea8 100644 --- a/src/catalogue/api/urls.py +++ b/src/catalogue/api/urls.py @@ -33,6 +33,16 @@ urlpatterns = [ url(r'^books/(?P[^/]+)/$', views.BookDetail.as_view(), name='catalogue_api_book'), + url(tags_re + r'ebooks/' + paginate_re, + views.EbookList.as_view(), + name='catalogue_api_ebook_list'), + url(tags_re + r'parent_ebooks/' + paginate_re, + views.EbookList.as_view(), + {"top_level": True}, + name='catalogue_api_parent_ebook_list'), + + url(r'^filter-books/$', views.FilterBookList.as_view(), name='catalogue_api_filter_books'), + url(r'^epub/(?P[a-z0-9-]+)/$', views.EpubView.as_view(), name='catalogue_api_epub'), url(r'^preview/$', views.Preview.as_view(), name='catalogue_api_preview'),