const express = require('express');
const router = express.Router();
const approvedHealthCareEmailController = require('../controllers/approvedHealthCareEmailController');
const authMiddleware = require('../middleware/authMiddleware');

// Get all approved health care emails
router.get('/', authMiddleware, approvedHealthCareEmailController.getAll);

// Get approved health care email by ID
router.get('/:id', authMiddleware, approvedHealthCareEmailController.getById);

// Create new approved health care email
router.post('/', authMiddleware, approvedHealthCareEmailController.create);

// Delete approved health care email
router.delete('/:id', authMiddleware, approvedHealthCareEmailController.delete);

module.exports = router;
