top stats

This commit is contained in:
hamid zarghami
2025-12-23 12:36:53 +03:30
parent d3cbeb4d5f
commit 860502f160
5 changed files with 60 additions and 4 deletions
@@ -0,0 +1,12 @@
import axios from "@/config/axios";
import type { IStatisticsResponse } from "../types/Types";
export const getStatistics = async (): Promise<IStatisticsResponse> => {
const { data } = await axios.get<IStatisticsResponse>("/admin/orders/stats");
return data;
};
export const getFoodSalesPieChart = async () => {
const { data } = await axios.get("/admin/orders/food-sales-pie-chart");
return data;
};