Files
LibraryApp/backend/apps/authentication/urls.py
2026-03-12 23:24:14 +01:00

19 lines
496 B
Python

from django.urls import include, path
from rest_framework_simplejwt.views import (
TokenObtainPairView,
TokenRefreshView,
TokenVerifyView
)
from apps.authentication.views import RegisterView
urlpatterns = [
path('login/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
path('register', RegisterView.as_view()),
path('refresh/', TokenRefreshView.as_view(), name='token_refresh'),
path('verify/', TokenVerifyView.as_view(), name='token_verify'),
]