1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
from django.urls import re_path
from rest_framework_simplejwt import views as jwt_views
from . import views
urlpatterns = [
re_path(r"^token/pair/$", jwt_views.token_obtain_pair, name="token_obtain_pair"),
re_path(r"^token/refresh/$", jwt_views.token_refresh, name="token_refresh"),
re_path(
r"^token/sliding/$", jwt_views.token_obtain_sliding, name="token_obtain_sliding"
),
re_path(
r"^token/sliding/refresh/$",
jwt_views.token_refresh_sliding,
name="token_refresh_sliding",
),
re_path(r"^token/verify/$", jwt_views.token_verify, name="token_verify"),
re_path(r"^token/blacklist/$", jwt_views.token_blacklist, name="token_blacklist"),
re_path(r"^test-view/$", views.test_view, name="test_view"),
]
|