Spaces:
Sleeping
Sleeping
Update api/urls.py
Browse files- api/urls.py +10 -1
api/urls.py
CHANGED
|
@@ -1,6 +1,11 @@
|
|
| 1 |
from django.urls import path
|
| 2 |
from . import views
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
urlpatterns = [
|
| 5 |
# βββ Auth βββ
|
| 6 |
path('api/signup/', views.signup, name='signup'),
|
|
@@ -13,6 +18,10 @@ urlpatterns = [
|
|
| 13 |
|
| 14 |
# βββ Doctor (Direct Access β no auth in prototype) βββ
|
| 15 |
path('api/doctor/dashboard/', views.doctor_dashboard, name='doctor-dashboard'),
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
# βββ REMOVED for prototype βββ
|
| 18 |
# path('api/report/...', ...) β all report/PDF routes removed
|
|
|
|
| 1 |
from django.urls import path
|
| 2 |
from . import views
|
| 3 |
+
from .views import (
|
| 4 |
+
doctors_list,
|
| 5 |
+
book_appointment,
|
| 6 |
+
my_appointments,
|
| 7 |
+
update_appointment_status
|
| 8 |
+
)
|
| 9 |
urlpatterns = [
|
| 10 |
# βββ Auth βββ
|
| 11 |
path('api/signup/', views.signup, name='signup'),
|
|
|
|
| 18 |
|
| 19 |
# βββ Doctor (Direct Access β no auth in prototype) βββ
|
| 20 |
path('api/doctor/dashboard/', views.doctor_dashboard, name='doctor-dashboard'),
|
| 21 |
+
path('doctors-list/', doctors_list, name='doctors-list'),
|
| 22 |
+
path('appointments/book/', book_appointment, name='book-appointment'),
|
| 23 |
+
path('appointments/my-appointments/', my_appointments, name='my-appointments'),
|
| 24 |
+
path('appointments/<int:pk>/status/', update_appointment_status, name='update-status'),
|
| 25 |
|
| 26 |
# βββ REMOVED for prototype βββ
|
| 27 |
# path('api/report/...', ...) β all report/PDF routes removed
|