Add: jwt token api endpoints
This commit is contained in:
parent
eb43daca83
commit
1ee5483958
1 changed files with 11 additions and 0 deletions
11
backend/api/urls.py
Normal file
11
backend/api/urls.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
from django.urls import path, include
|
||||
|
||||
from rest_framework_simplejwt.views import (
|
||||
TokenObtainPairView,
|
||||
TokenRefreshView,
|
||||
)
|
||||
|
||||
urlpatterns = [
|
||||
path("api/token/", TokenObtainPairView.as_view(), name="token_obtain_pair"),
|
||||
path("api/token/refresh/", TokenRefreshView.as_view(), name="token_refresh"),
|
||||
]
|
Loading…
Add table
Reference in a new issue