12 lines
421 B
TypeScript
12 lines
421 B
TypeScript
import type { StatisticResponse } from "@/features/home/lib/type";
|
|
import httpClient from "@/shared/config/api/httpClient";
|
|
import { API_URLS } from "@/shared/config/api/URLs";
|
|
import type { AxiosResponse } from "axios";
|
|
|
|
export const statisticApi = {
|
|
async fetchStatistics(): Promise<AxiosResponse<StatisticResponse>> {
|
|
const response = await httpClient.get(API_URLS.Statistica);
|
|
return response.data;
|
|
},
|
|
};
|