X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6d42bc478e3d1bd90eb294464748c21e4de0fc63..891c65c58eef499c1ffc3a5fe690e1b6bff0f0db:/src/opds/urls.py?ds=inline

diff --git a/src/opds/urls.py b/src/opds/urls.py
index 213c55af8..1d681992c 100644
--- a/src/opds/urls.py
+++ b/src/opds/urls.py
@@ -1,15 +1,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 url
+from django.urls import path
 from opds.views import RootFeed, ByCategoryFeed, ByTagFeed, UserFeed, UserSetFeed, SearchFeed
 
 
 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<slug>[a-zA-Z0-9-]+)/$', UserSetFeed(), name="opds_user_set"),
-    url(r'^(?P<category>[a-zA-Z0-9-]+)/$', ByCategoryFeed(), name="opds_by_category"),
-    url(r'^(?P<category>[a-zA-Z0-9-]+)/(?P<slug>[a-zA-Z0-9-]+)/$', ByTagFeed(), name="opds_by_tag"),
+    path('', RootFeed(), name="opds_authors"),
+    path('search/', SearchFeed(), name="opds_search"),
+    path('user/', UserFeed(), name="opds_user"),
+    path('set/<slug>/', UserSetFeed(), name="opds_user_set"),
+    path('<category>/', ByCategoryFeed(), name="opds_by_category"),
+    path('<category>/<slug>/', ByTagFeed(), name="opds_by_tag"),
 ]