budjeto/authentication/urls.py

16 lines
416 B
Python
Raw Permalink Normal View History

2024-02-06 10:21:09 +00:00
from django.urls import path, include
from authentication import views
2024-02-06 10:21:09 +00:00
from rest_framework_simplejwt.views import (
TokenObtainPairView,
TokenRefreshView
)
app_name = 'auth'
urlpatterns = [
path('signup/', views.SignUpView.as_view(), name='signup'),
2024-02-06 10:21:09 +00:00
path('token/', TokenObtainPairView.as_view(), name='token_obtain'),
path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh')
]