const express = require('express');
const router = express.Router();
const { authenticate } = require('../middlewares/auth');
const rejectionReworkRecordController = require('../controllers/rejectionReworkRecordController');

router.use(authenticate);

router.get('/', rejectionReworkRecordController.getAll);
router.get('/:id', rejectionReworkRecordController.getById);
router.post('/', rejectionReworkRecordController.create);
router.put('/:id', rejectionReworkRecordController.update);
router.delete('/:id', rejectionReworkRecordController.delete);

module.exports = router;
