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

router.use(authenticate);

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

module.exports = router;
