Spaces:
Sleeping
Sleeping
Update api/routes.py
Browse files- api/routes.py +1 -0
api/routes.py
CHANGED
|
@@ -45,6 +45,7 @@ async def create_doctor(data: DoctorCreate):
|
|
| 45 |
"matricule": data.matricule,
|
| 46 |
"email": data.email.lower().strip(),
|
| 47 |
"full_name": data.full_name.strip(),
|
|
|
|
| 48 |
"password": hashed_pw,
|
| 49 |
"role": "doctor",
|
| 50 |
"created_at": datetime.utcnow()
|
|
|
|
| 45 |
"matricule": data.matricule,
|
| 46 |
"email": data.email.lower().strip(),
|
| 47 |
"full_name": data.full_name.strip(),
|
| 48 |
+
"specialty": data.specialty,
|
| 49 |
"password": hashed_pw,
|
| 50 |
"role": "doctor",
|
| 51 |
"created_at": datetime.utcnow()
|