From 01369ff737716f2aa56ecb53845b3b97f900ede8 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 27 Sep 2023 14:02:29 +0200 Subject: [PATCH] add endpoint api-token-auth-v2 --- orchestra/urls.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/orchestra/urls.py b/orchestra/urls.py index e3f7cefb..c2f37e4a 100644 --- a/orchestra/urls.py +++ b/orchestra/urls.py @@ -2,7 +2,7 @@ from django.contrib import admin from django.conf.urls import include, url from rest_framework.authtoken.views import obtain_auth_token -from orchestra.views import serve_private_media +from orchestra.views import serve_private_media, obtain_auth_token_v2 from . import api from .utils.apps import isinstalled @@ -20,6 +20,7 @@ urlpatterns = [ url(r'^api/', include(api.router.urls)), url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')), url(r'^api-token-auth/', obtain_auth_token, name='api-token-auth'), + url(r'^api-token-auth-v2/', obtain_auth_token_v2, name='api-token-auth-v2'), url(r'^media/(.+)/(.+)/(.+)/(.+)/(.+)$', serve_private_media, name='private-media'), # url(r'search', 'orchestra.views.search', name='search'), ]