12 lines
342 B
TypeScript
12 lines
342 B
TypeScript
import { http } from "@/shared/api/httpClient";
|
|
import { DashboardSchema, DashboardData } from "./types";
|
|
import { delay } from "@/shared/utils/delay";
|
|
|
|
export const getDashboard = async () => {
|
|
await delay(3_000);
|
|
|
|
return http.get<DashboardData>("/dashboard", {
|
|
tags: ["dashboard"],
|
|
schema: DashboardSchema,
|
|
});
|
|
} |