13 lines
623 B
Python
13 lines
623 B
Python
from django.urls import path
|
|
from .views import PatientListView, SyncPatientsView, ProtectedView
|
|
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView
|
|
|
|
urlpatterns = [
|
|
path('token/', TokenObtainPairView.as_view(), name='token_obtain_pair'), # Получение токена
|
|
path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'), # Обновление токена
|
|
path('', PatientListView.as_view(), name='patient-list'),
|
|
path('sync/', SyncPatientsView.as_view(), name='sync-patients'),
|
|
path('protected/', ProtectedView.as_view(), name='protected'),
|
|
|
|
]
|