mirror of
http://88.130.71.182:3000/BlitTech/badoHair_fe.git
synced 2026-06-13 10:41:11 +00:00
Update May 12 by Elvis
This commit is contained in:
18
lib/api/admin.ts
Normal file
18
lib/api/admin.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { api } from "@/lib/api";
|
||||
|
||||
export interface DashboardStats {
|
||||
revenue_today: number;
|
||||
revenue_week: number;
|
||||
revenue_month: number;
|
||||
orders_pending: number;
|
||||
bookings_pending: number;
|
||||
bookings_confirmed: number;
|
||||
products_count: number;
|
||||
catalog_value: number;
|
||||
low_stock_count: number;
|
||||
new_customers_month: number;
|
||||
}
|
||||
|
||||
export async function getDashboardStats(): Promise<DashboardStats> {
|
||||
return api.get<DashboardStats>("/admin/stats/overview");
|
||||
}
|
||||
Reference in New Issue
Block a user