Add: jwt token api endpoints

This commit is contained in:
Aroy-Art 2025-01-28 22:01:58 +01:00
parent eb43daca83
commit 1ee5483958
Signed by: Aroy
GPG key ID: 583642324A1D2070

11
backend/api/urls.py Normal file
View 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"),
]