2025-11-23 00:19:26 +00:00
|
|
|
from django.urls import path
|
|
|
|
|
from .views import (
|
|
|
|
|
AdminAvailabilityView,
|
|
|
|
|
AppointmentRequestListView,
|
|
|
|
|
AppointmentRequestCreateView,
|
|
|
|
|
AppointmentRequestDetailView,
|
|
|
|
|
schedule_appointment,
|
|
|
|
|
reject_appointment,
|
|
|
|
|
available_dates,
|
|
|
|
|
user_appointments,
|
2025-11-23 23:06:17 +00:00
|
|
|
appointment_stats,
|
|
|
|
|
user_apointment_stats
|
2025-11-23 00:19:26 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
|
path('admin/availability/', AdminAvailabilityView.as_view(), name='admin-availability'),
|
|
|
|
|
|
|
|
|
|
path('appointments/', AppointmentRequestListView.as_view(), name='appointment-list'),
|
|
|
|
|
path('appointments/create/', AppointmentRequestCreateView.as_view(), name='appointment-create'),
|
|
|
|
|
path('appointments/<uuid:pk>/', AppointmentRequestDetailView.as_view(), name='appointment-detail'),
|
|
|
|
|
|
|
|
|
|
path('appointments/<uuid:pk>/schedule/', schedule_appointment, name='appointment-schedule'),
|
|
|
|
|
path('appointments/<uuid:pk>/reject/', reject_appointment, name='appointment-reject'),
|
|
|
|
|
|
|
|
|
|
path('appointments/available-dates/', available_dates, name='available-dates'),
|
|
|
|
|
path('user/appointments/', user_appointments, name='user-appointments'),
|
|
|
|
|
|
|
|
|
|
path('appointments/stats/', appointment_stats, name='appointment-stats'),
|
2025-11-23 23:06:17 +00:00
|
|
|
path('user/appointments/stats/', user_apointment_stats, name='user-appointment-stats'),
|
2025-11-23 00:19:26 +00:00
|
|
|
]
|