feat: add featured doctors and health packages APIs
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
getDoctorTimingById,
|
||||
getDoctorByDoctorId,
|
||||
getDoctorsByDepartmentId,
|
||||
getFeaturedDoctors,
|
||||
} from '../controllers/doctor.controller.js';
|
||||
|
||||
import jwtAuthMiddleware from '../middleware/auth.js';
|
||||
@@ -19,6 +20,7 @@ router.get('/search', getDoctorsByDepartmentId);
|
||||
router.get('/getTimings', getDoctorTimings);
|
||||
router.get('/getTimings/:doctorId', getDoctorTimingById);
|
||||
router.get('/:doctorId', getDoctorByDoctorId);
|
||||
router.get('/featured', getFeaturedDoctors);
|
||||
|
||||
router.post('/', jwtAuthMiddleware, createDoctor);
|
||||
router.patch('/:doctorId/:action', jwtAuthMiddleware, updateDoctor);
|
||||
|
||||
Reference in New Issue
Block a user