Spaces:
Sleeping
Sleeping
Update api/routes.py
Browse files- api/routes.py +1 -1
api/routes.py
CHANGED
|
@@ -158,7 +158,7 @@ async def delete_patient(patient_id: str, current_user: dict = Depends(get_curre
|
|
| 158 |
return {"message": "Patient deleted successfully"}
|
| 159 |
|
| 160 |
# --- COUNT PATIENTS BY DOCTOR ---
|
| 161 |
-
@router.get("/patients
|
| 162 |
async def count_patients(current_user: dict = Depends(get_current_user)):
|
| 163 |
try:
|
| 164 |
email = current_user.get("email")
|
|
|
|
| 158 |
return {"message": "Patient deleted successfully"}
|
| 159 |
|
| 160 |
# --- COUNT PATIENTS BY DOCTOR ---
|
| 161 |
+
@router.get("/patients-count") # ✅ No chance of conflict
|
| 162 |
async def count_patients(current_user: dict = Depends(get_current_user)):
|
| 163 |
try:
|
| 164 |
email = current_user.get("email")
|