const express = require('express');
const router = express.Router();
const ExportController = require('../controllers/ExportController');

/**
 * Routen für Daten-Export
 */

// GET /api/export/csv?startDate=2025-01-01&endDate=2025-12-31
router.get('/csv', ExportController.exportCSV.bind(ExportController));

// GET /api/export/excel?startDate=2025-01-01&endDate=2025-12-31
router.get('/excel', ExportController.exportExcel.bind(ExportController));

// GET /api/export/pdf?startDate=2025-01-01&endDate=2025-12-31
router.get('/pdf', ExportController.exportPDF.bind(ExportController));

module.exports = router;

