// Report Routes - PDF Generation
const express = require('express');
const router = express.Router();
const { protect } = require('../middleware/authMiddleware');
const {
    generateTeamReport,
    generateMemberReport,
    generateComplianceReport
} = require('../controllers/reportController');

// All routes require authentication
router.use(protect);

// Team Progress Report
router.get('/team/:orgId', generateTeamReport);

// Individual Member Report  
router.get('/member/:orgId/:memberId', generateMemberReport);

// Compliance Report (SOC 2, NIST, ISO 27001)
router.get('/compliance/:orgId', generateComplianceReport);

module.exports = router;
