const express = require('express');
const router = express.Router();
const auth = require('../middleware/auth');
const {
  salesByDateRange,
  monthlyReport,
  stockReport,
  customerPurchaseReport,
  dashboardStats
} = require('../controllers/reportController');

router.get('/dashboard', auth, dashboardStats);
router.get('/sales-by-date', auth, salesByDateRange);
router.get('/monthly', auth, monthlyReport);
router.get('/stock', auth, stockReport);
router.get('/customer/:customer_id', auth, customerPurchaseReport);

module.exports = router;
