// /components/dashboard/dashboardController.js 'use strict'; const catchAsync = require('../../utils/catchAsync'); const dashboardService = require('./dashboardService'); const { successResponse } = require('../../utils/apiResponse'); exports.getAdminStats = catchAsync(async (req, res, next) => { const stats = await dashboardService.getAdminStats(); return successResponse(res, 200, 'Dashboard stats retrieved successfully', stats); });