const express = require('express');
const { authenticate, authorize } = require('../middleware/auth');
const AuditLogController = require('../controllers/AuditLogController');

const router = express.Router();

router.get('/', authenticate, authorize('admin'), AuditLogController.getAll);
router.get('/actions', authenticate, authorize('admin'), AuditLogController.getActions);
router.get('/:id', authenticate, authorize('admin'), AuditLogController.getById);

module.exports = router;
