Ali2206 commited on
Commit
51eb909
·
verified ·
1 Parent(s): 22f39dc

Update api/routes.py

Browse files
Files changed (1) hide show
  1. 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()