@@ -5,21 +5,11 @@ import * as patientController from '../controllers/patient.js';
55const router = express . Router ( ) ;
66
77
8- < << << << HEAD
98router . get ( '/' , protect , authorize ( 'admin' , 'doctor' , 'receptionist' ) , patientController . getPatients ) ;
109
1110router . post ( '/' , protect , authorize ( 'admin' , 'doctor' , 'receptionist' ) , patientController . createPatient ) ;
1211
1312router . put ( '/:id' , protect , authorize ( 'admin' , 'doctor' , 'receptionist' ) , patientController . updatePatient ) ;
14- = === ===
15- router . get ( '/' , protect , authorize ( 'admin' , 'doctor' , 'receptionist' ) , patientController . getPatients ) ;
16-
17- router . get ( '/:id' , protect , authorize ( 'admin' , 'doctor' , 'receptionist' ) , patientController . getPatientById ) ;
18-
19- router . post ( '/' , protect , authorize ( 'admin' , 'doctor' , 'receptionist' ) , patientController . createPatient ) ;
20-
21- router . put ( '/:id' , protect , authorize ( 'admin' , 'doctor' , 'receptionist' ) , patientController . updatePatient ) ;
22- > >>> >>> recovery - branch
2313
2414router . delete ( '/:id' , protect , authorize ( 'admin' , 'receptionist' ) , patientController . deletePatient ) ;
2515
0 commit comments