import { Request, Response } from "express";
import { asyncHandler } from "../../core/asyncHandler";
import { dashboardService } from "./dashboard.service";

export const getLiveDashboard = asyncHandler(
    async (req: Request, res: Response) => {
        const stats = await dashboardService.getLiveStats(req.shop!.id);
        res.json(stats);
    }
);