|
1 | 1 | from django.conf import settings
|
2 | 2 | from django.conf.urls.static import static
|
3 | 3 | from django.contrib import admin
|
| 4 | +from django.contrib.auth import views as auth_views |
4 | 5 | from django.shortcuts import redirect
|
5 | 6 | from django.urls import include, path as urlpath
|
6 |
| -from django.contrib.auth import views as auth_views |
7 | 7 | from drf_yasg import openapi
|
8 | 8 | from drf_yasg.views import get_schema_view
|
9 | 9 | from rest_framework import routers, permissions
|
@@ -49,7 +49,8 @@ def to_frontend(request, path):
|
49 | 49 | urlpath('redoc/', schema_view.with_ui('redoc', cache_timeout=0), name='schema-redoc'),
|
50 | 50 | urlpath("admin/", admin.site.urls),
|
51 | 51 | urlpath('auth/login/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
|
52 |
| - urlpath('auth/logout', auth_views.LogoutView.as_view(next_page=settings.FRONTEND_URL), name='authlogout'), |
| 52 | + urlpath('auth/logout', auth_views.LogoutView.as_view(next_page=settings.FRONTEND_URL), |
| 53 | + name='authlogout'), |
53 | 54 | urlpath('auth/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
|
54 | 55 | urlpath('microsoft/', include('microsoft_auth.urls', namespace='microsoft')),
|
55 | 56 | urlpath('redirect/<path:path>', to_frontend, name='redirect'),
|
|
0 commit comments