xray/orthanc/urls.py

13 lines
623 B
Python
Raw Normal View History

2025-01-28 21:43:26 +10:00
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'),
]