This commit is contained in:
2026-04-15 11:19:45 +00:00
commit acb79b2db7
183 changed files with 22067 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import {PARTNERS} from "@/shared/constants/apiEndpoints";
import {GET} from "@/shared/api/apiClient";
import {GetPartnersResponse} from "@/shared/types/partners";
export const getPartners = async (): Promise<GetPartnersResponse> => {
const res = await GET<GetPartnersResponse>(PARTNERS);
return res.data;
}
export const getPartnerById = async (id: number): Promise<GetPartnersResponse> => {
const res = await GET<GetPartnersResponse>(`${PARTNERS}/${id}`);
return res.data;
}