@@ -5,13 +5,13 @@ import * as patientController from '../controllers/patient.js';
55const router = express . Router ( ) ;
66
77
8- router . get ( '/' , protect , authorize ( 'admin' , 'doctor' , 'receptionist' ) , patientController . getPatients ) ;
8+ router . get ( '/' , protect , authorize ( 'admin' , 'doctor' , 'receptionist' , 'billing' ) , patientController . getPatients ) ;
99
10- router . get ( '/:id' , protect , authorize ( 'admin' , 'doctor' , 'receptionist' ) , patientController . getPatientById ) ;
10+ router . get ( '/:id' , protect , authorize ( 'admin' , 'doctor' , 'receptionist' , 'billing' ) , patientController . getPatientById ) ;
1111
12- router . post ( '/' , protect , authorize ( 'admin' , 'doctor' , 'receptionist' ) , patientController . createPatient ) ;
12+ router . post ( '/' , protect , authorize ( 'admin' , 'doctor' , 'receptionist' , 'billing' ) , patientController . createPatient ) ;
1313
14- router . put ( '/:id' , protect , authorize ( 'admin' , 'doctor' , 'receptionist' ) , patientController . updatePatient ) ;
14+ router . put ( '/:id' , protect , authorize ( 'admin' , 'doctor' , 'receptionist' , 'billing' ) , patientController . updatePatient ) ;
1515
1616router . delete ( '/:id' , protect , authorize ( 'admin' ) , patientController . deletePatient ) ;
1717
0 commit comments