X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ae60b2a3949e96357477cc04f90fd0873cee8a92..e5f72228d92e58406b43c2a772737535041d28c0:/src/opds/urls.py?ds=inline diff --git a/src/opds/urls.py b/src/opds/urls.py index edf928297..8f1059f1e 100644 --- a/src/opds/urls.py +++ b/src/opds/urls.py @@ -2,16 +2,15 @@ # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # -from django.conf.urls import patterns, url +from django.conf.urls import url from opds.views import RootFeed, ByCategoryFeed, ByTagFeed, UserFeed, UserSetFeed, SearchFeed -urlpatterns = patterns( - 'opds.views', +urlpatterns = [ url(r'^$', RootFeed(), name="opds_authors"), url(r'^search/$', SearchFeed(), name="opds_search"), url(r'^user/$', UserFeed(), name="opds_user"), url(r'^set/(?P[a-zA-Z0-9-]+)/$', UserSetFeed(), name="opds_user_set"), url(r'^(?P[a-zA-Z0-9-]+)/$', ByCategoryFeed(), name="opds_by_category"), url(r'^(?P[a-zA-Z0-9-]+)/(?P[a-zA-Z0-9-]+)/$', ByTagFeed(), name="opds_by_tag"), -) +]