import { Router } from 'express';
import { systemLogs } from '../controllers/logController.js';
import { requireAdmin, requireAuth } from '../middleware/auth.js';

export const logRoutes = Router();

// System logs can expose operational internals, so access is admin-only.
logRoutes.get('/system', requireAuth, requireAdmin, systemLogs);
