12 lines
364 B
Python
12 lines
364 B
Python
from django.urls import path, include
|
|
|
|
from rest_framework_simplejwt.views import (
|
|
TokenObtainPairView,
|
|
TokenRefreshView,
|
|
)
|
|
|
|
urlpatterns = [
|
|
path("api/user/", include("api.user.urls")),
|
|
path("api/token/", TokenObtainPairView.as_view(), name="token_obtain_pair"),
|
|
path("api/token/refresh/", TokenRefreshView.as_view(), name="token_refresh"),
|
|
]
|