2025-11-23 00:19:26 +00:00
|
|
|
from django.urls import path
|
|
|
|
|
from .views import (
|
|
|
|
|
AdminAvailabilityView,
|
2025-11-26 19:30:26 +00:00
|
|
|
AdminAvailabilityConfigView,
|
2025-11-23 00:19:26 +00:00
|
|
|
AppointmentRequestListView,
|
|
|
|
|
AppointmentRequestCreateView,
|
|
|
|
|
AppointmentRequestDetailView,
|
2025-11-24 13:29:07 +00:00
|
|
|
ScheduleAppointmentView,
|
|
|
|
|
RejectAppointmentView,
|
|
|
|
|
AvailableDatesView,
|
2025-11-26 19:30:26 +00:00
|
|
|
CheckDateAvailabilityView,
|
|
|
|
|
WeeklyAvailabilityView,
|
2025-11-24 13:29:07 +00:00
|
|
|
UserAppointmentsView,
|
|
|
|
|
AppointmentStatsView,
|
2025-11-26 19:30:26 +00:00
|
|
|
UserAppointmentStatsView,
|
|
|
|
|
MatchingAvailabilityView,
|
|
|
|
|
availability_overview
|
2025-11-23 00:19:26 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
|
path('admin/availability/', AdminAvailabilityView.as_view(), name='admin-availability'),
|
2025-11-26 19:30:26 +00:00
|
|
|
path('availability/config/', AdminAvailabilityConfigView.as_view(), name='availability-config'),
|
|
|
|
|
path('availability/check/', CheckDateAvailabilityView.as_view(), name='check-availability'),
|
|
|
|
|
path('availability/weekly/', WeeklyAvailabilityView.as_view(), name='weekly-availability'),
|
|
|
|
|
path('availability/overview/', availability_overview, name='availability-overview'),
|
2025-11-23 00:19:26 +00:00
|
|
|
|
|
|
|
|
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'),
|
2025-11-26 19:30:26 +00:00
|
|
|
path('appointments/<uuid:pk>/matching-availability/', MatchingAvailabilityView.as_view(), name='matching-availability'),
|
2025-11-23 00:19:26 +00:00
|
|
|
|
2025-11-24 13:29:07 +00:00
|
|
|
path('appointments/<uuid:pk>/schedule/', ScheduleAppointmentView.as_view(), name='appointment-schedule'),
|
|
|
|
|
path('appointments/<uuid:pk>/reject/', RejectAppointmentView.as_view(), name='appointment-reject'),
|
2025-11-23 00:19:26 +00:00
|
|
|
|
2025-11-24 13:29:07 +00:00
|
|
|
path('appointments/available-dates/', AvailableDatesView.as_view(), name='available-dates'),
|
2025-11-26 19:30:26 +00:00
|
|
|
|
2025-11-24 13:29:07 +00:00
|
|
|
path('user/appointments/', UserAppointmentsView.as_view(), name='user-appointments'),
|
2025-11-23 00:19:26 +00:00
|
|
|
|
2025-11-24 13:29:07 +00:00
|
|
|
path('appointments/stats/', AppointmentStatsView.as_view(), name='appointment-stats'),
|
|
|
|
|
path('user/appointments/stats/', UserAppointmentStatsView.as_view(), name='user-appointment-stats'),
|
2025-11-23 00:19:26 +00:00
|
|
|
]
|