const express = require('express');
const router = express.Router();
const { protect } = require('../middleware/auth');
const { addEmployee, getEmployees } = require('../controllers/employeeController');

router.use(protect);
router.post('/add', addEmployee);
router.get('/list', getEmployees);

module.exports = router;
