X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9b8b01f5d27d66386597a8789d921f3a2c630e09..9a1e9af2126d185c81637d12e1ca5b79c101586f:/apps/catalogue/urls.py?ds=sidebyside diff --git a/apps/catalogue/urls.py b/apps/catalogue/urls.py index 70d5fd8e4..ba9818d7f 100644 --- a/apps/catalogue/urls.py +++ b/apps/catalogue/urls.py @@ -3,6 +3,7 @@ # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # from django.conf.urls.defaults import * +from catalogue.feeds import RootFeed, ByCategoryFeed, ByTagFeed urlpatterns = patterns('catalogue.views', @@ -22,6 +23,11 @@ urlpatterns = patterns('catalogue.views', # tools url(r'^zegar', 'clock', name='clock'), + # OPDS interface + url(r'^opds/$', RootFeed(), name="opds_authors"), + url(r'^opds/(?Pauthor|kind|genre|epoch|theme)/$', ByCategoryFeed(), name="opds_by_category"), + url(r'^opds/(?Pauthor|kind|genre|epoch|theme)/(?P[a-zA-Z0-9-]+)/$', ByTagFeed(), name="opds_by_tag"), + # Public interface. Do not change this URLs. url(r'^lektura/(?P[a-zA-Z0-9-]+)\.html$', 'book_text', name='book_text'), url(r'^lektura/(?P[a-zA-Z0-9-]+)/$', 'book_detail', name='book_detail'),