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

router.use(authenticate);

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

module.exports = router;
