X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/832bfbcc54cd38942d6df89e850d4268386d6241..7e9be4e3962e1cccc43798d0507b2c82cd1d275c:/src/social/api/urls.py?ds=inline diff --git a/src/social/api/urls.py b/src/social/api/urls.py index 5c633d805..2b20ab8a1 100644 --- a/src/social/api/urls.py +++ b/src/social/api/urls.py @@ -1,17 +1,16 @@ -# -*- 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. # -from django.conf.urls import include, url +from django.urls import path from stats.utils import piwik_track_view from . import views urlpatterns = [ - url(r'^like/(?P[a-z0-9-]+)/$', + path('like//', piwik_track_view(views.LikeView.as_view()), name='social_api_like'), - url(r'^shelf/(?P[a-z]+)/$', + path('shelf//', piwik_track_view(views.ShelfView.as_view()), name='social_api_shelf'), ]