X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..ca8f4e8fef80cb603117ed579da8554f503698e5:/src/opds/urls.py?ds=inline diff --git a/src/opds/urls.py b/src/opds/urls.py index 00831f0b3..55e1319d5 100644 --- a/src/opds/urls.py +++ b/src/opds/urls.py @@ -1,16 +1,15 @@ -# -*- coding: utf-8 -*- -# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. -# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Wolne Lektury. See NOTICE for more information. # -from django.conf.urls import patterns, url +from django.urls import path from opds.views import RootFeed, ByCategoryFeed, ByTagFeed, UserFeed, UserSetFeed, SearchFeed -urlpatterns = patterns('opds.views', - 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"), -) +urlpatterns = [ + path('', RootFeed(), name="opds_authors"), + path('search/', SearchFeed(), name="opds_search"), + path('user/', UserFeed(), name="opds_user"), + path('set//', UserSetFeed(), name="opds_user_set"), + path('/', ByCategoryFeed(), name="opds_by_category"), + path('//', ByTagFeed(), name="opds_by_tag"), +]