import { Router } from 'express';
import { listAuditEvents, listJobHistory } from '../store.js';

export const operationsRouter = Router();

operationsRouter.get('/audit', (_req, res) => {
  res.json(listAuditEvents());
});

operationsRouter.get('/history', (_req, res) => {
  res.json(listJobHistory());
});
