alternative-backend-service/meetings/urls.py
saani d736c1681c # Commit Message
```
refactor: update settings and Docker config for production

- Configure ALLOWED_HOSTS and CORS from environment variables for better security
- Switch default database from PostgreSQL to SQLite3 (PostgreSQL config commented)
- Simplify DEBUG environment variable handling
- Update Dockerfile to use Python 3.11 and gunicorn for production
- Add static file collection in Docker build process
- Add user appointment statistics endpoint (user_apointment_stats)
- Add .dockerignore to exclude unnecessary files from build

These changes improve production readiness by making critical settings
configurable via environment variables and using production-grade WSGI
server (gunicorn) instead of Django development server.
2025-11-23 23:06:17 +00:00

30 lines
1.2 KiB
Python

from django.urls import path
from .views import (
AdminAvailabilityView,
AppointmentRequestListView,
AppointmentRequestCreateView,
AppointmentRequestDetailView,
schedule_appointment,
reject_appointment,
available_dates,
user_appointments,
appointment_stats,
user_apointment_stats
)
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'),
path('user/appointments/stats/', user_apointment_stats, name='user-appointment-stats'),
]