const dashboardModel = require('../models/dashboardModel');

exports.getSummary = async (req, res) => {
  try {
    const stats = await dashboardModel.getDashboardStats();
    res.json(stats);
  } catch (err) {
    res.status(500).json({ error: err.message });
  }
};
