api ulangan
This commit is contained in:
11
src/features/home/lib/api.ts
Normal file
11
src/features/home/lib/api.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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;
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user