Some new api.
[wolnelektury.git] / src / social / api / urls2.py
diff --git a/src/social/api/urls2.py b/src/social/api/urls2.py
new file mode 100644 (file)
index 0000000..822bea3
--- /dev/null
@@ -0,0 +1,16 @@
+# 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.urls import path
+from stats.utils import piwik_track_view
+from . import views
+
+
+urlpatterns = [
+    path('like/<slug:slug>/',
+        piwik_track_view(views.LikeView.as_view()),
+        name='social_api_like'),
+    path('likes/', views.LikesView.as_view()),
+]
+
+