const express = require('express');
const router = express.Router();
const { protect } = require('../middleware/auth');
const { addDepartment, getDepartments } = require('../controllers/departmentController');

router.use(protect);
router.post('/add', addDepartment);
router.get('/list', getDepartments);

module.exports = router;
