add endpoint api-token-auth-v2

This commit is contained in:
Cayo Puigdefabregas 2023-09-27 14:02:29 +02:00
parent 99d31d5030
commit 01369ff737
1 changed files with 2 additions and 1 deletions

View File

@ -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'),
]