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

async function index(req, res) {
  const stats = await dashboardModel.getDashboardStats();
  res.render('dashboard/index', { title: 'Dashboard', stats });
}

module.exports = { index };
