X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/540e76dd8e04d7bab431da696565e826788bd218..dd85755df4e3ef8489a6fb2f71a65abf84b06739:/src/social/api/urls.py?ds=sidebyside diff --git a/src/social/api/urls.py b/src/social/api/urls.py index 8ded909b4..5c633d805 100644 --- a/src/social/api/urls.py +++ b/src/social/api/urls.py @@ -3,10 +3,15 @@ # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # from django.conf.urls import include, url +from stats.utils import piwik_track_view from . import views urlpatterns = [ - url(r'^like/(?P[a-z0-9-]+)/$', views.LikeView.as_view(), name='social_api_like'), - url(r'^shelf/(?P[a-z]+)/$', views.ShelfView.as_view(), name='social_api_shelf'), + url(r'^like/(?P[a-z0-9-]+)/$', + piwik_track_view(views.LikeView.as_view()), + name='social_api_like'), + url(r'^shelf/(?P[a-z]+)/$', + piwik_track_view(views.ShelfView.as_view()), + name='social_api_shelf'), ]