import { http } from "@/shared/api/httpClient";
import { API_ROUTES } from "@/shared/constants/api-routes";

import { DashboardData, DashboardSchema } from "./types";

export const getDashboard = async () => {
  return http.get<DashboardData>(API_ROUTES.dashboard(), {
    cache: "no-store", // Всегда свежие данные
    schema: DashboardSchema,
  });
};
