const express = require('express');
const router = express.Router();
const { protect } = require('../middleware/authMiddleware');
const logController = require('../controllers/logController');

// Search SIEM logs (requires authenticated user)
router.post('/search', protect, logController.searchLogs);

// Get available log indexes
router.get('/indexes', protect, logController.getIndexes);

module.exports = router;
