X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ca8f4e8fef80cb603117ed579da8554f503698e5..59947fddf28d67c6822267c8a0fc28e13a6e9175:/src/api/urls.py diff --git a/src/api/urls.py b/src/api/urls.py index 703283ef7..b0ee94def 100644 --- a/src/api/urls.py +++ b/src/api/urls.py @@ -9,7 +9,15 @@ from stats.utils import piwik_track_view from . import views +urlpatterns1 = [ + path('login/', csrf_exempt(views.LoginView.as_view())), + path('', include('catalogue.api.urls2')), +] + + urlpatterns = [ + path('2/', include((urlpatterns1, 'api'), namespace="v2")), + path('oauth/request_token/', csrf_exempt(views.OAuth1RequestTokenView.as_view())), path('oauth/authorize/', views.oauth_user_auth, name='oauth_user_auth'), path('oauth/access_token/', csrf_exempt(views.OAuth1AccessTokenView.as_view())), @@ -37,4 +45,5 @@ urlpatterns = [ path('', include('social.api.urls')), path('', include('catalogue.api.urls')), + ]