mirror of
https://github.com/task-17-lct/backend.git
synced 2024-11-27 23:13:45 +03:00
11 lines
386 B
Python
11 lines
386 B
Python
|
from django.urls import path
|
||
|
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView
|
||
|
|
||
|
from .views import RegisterApiView
|
||
|
|
||
|
urlpatterns = [
|
||
|
path("token/", TokenObtainPairView.as_view(), name="token_obtain_pair"),
|
||
|
path("refresh/", TokenRefreshView.as_view(), name="token_refresh"),
|
||
|
path("register/", RegisterApiView.as_view(), name="user_register"),
|
||
|
]
|