from django.urls import path
from  .views import *

urlpatterns = [
    path('', AccountLoginView.as_view(), name='account-login'),
    path('logout', AccountLogoutView.as_view(), name='account-logout'),
    path('redirect', PatientsRedirectView.as_view(), name='patients-redirect'),
    path('patients', PatientsDetailView.as_view(), name='patients-detail'),
    path('delete/<patient_id>', delete_patient, name='delete'),
    path('medical_card/<patient_id>', MedicalCardDetailView.as_view(), name='medical-card'),
    path('medical_card/<patient_id>/patient-update', PatientUpdateView.as_view(), name='patient-update'),
    path('medical_card/<patient_id>/create-questionnaire', CreateQuestionnaire.as_view(), name='create-questionnaire'),
    path('delete-questionnaire/<patient_id>/<questionnaire_id>', delete_questionnaire, name='delete-questionnaire')
]