const express = require('express')
const router = express.Router()
const {createEmployee, getAllEmployees, getEmployeeById, updateEmployee, deleteEmployee} = require('../controllers/employeeController');
const {authMiddleware} = require('../middleware/authMiddleware')

router.use(authMiddleware)

router.post('/', createEmployee)
router.get('/', getAllEmployees)
router.post('/:id', getEmployeeById)
router.post('/:id', updateEmployee)
router.post('/:id', deleteEmployee)

module.exports = router
