refresh token route
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from django.urls import path, include
|
||||
from .views import LoginViewSet, LogoutView
|
||||
from .views import LoginViewSet, LogoutView, RefreshTokenView
|
||||
from rest_framework.routers import DefaultRouter
|
||||
from drf_spectacular.views import (
|
||||
SpectacularAPIView,
|
||||
@@ -13,6 +13,7 @@ router.register(r'', LoginViewSet, basename='auth')
|
||||
urlpatterns = [
|
||||
path('', include(router.urls)),
|
||||
path('logout/', LogoutView.as_view(), name='auth-logout'),
|
||||
path('refresh/', RefreshTokenView.as_view(), name='token-refresh'),
|
||||
path('schema/', SpectacularAPIView.as_view(), name='schema'),
|
||||
path(
|
||||
'docs/',
|
||||
|
||||
Reference in New Issue
Block a user