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);
|
||||
|
||||
@@ -12,6 +12,7 @@ import {
|
||||
createPackage,
|
||||
updatePackage,
|
||||
deletePackage,
|
||||
getFeaturedPackages,
|
||||
|
||||
// Inquiries
|
||||
createPackageInquiry,
|
||||
@@ -26,6 +27,7 @@ router.get('/packages', getAllPackages);
|
||||
router.get('/packages/:slug', getPackageBySlug);
|
||||
router.get('/categories', getAllCategories);
|
||||
router.post('/inquiry', createPackageInquiry);
|
||||
router.get('/featured', getFeaturedPackages);
|
||||
|
||||
router.get('/inquiries', jwtAuthMiddleware, getAllInquiries);
|
||||
router.post('/', jwtAuthMiddleware, createPackage);
|
||||
|
||||
Reference in New Issue
Block a user