Files
hounam-submit-form-frontend/services/apis/center.api.ts
2026-06-02 17:08:52 +03:30

11 lines
299 B
TypeScript

import callAPI from "@/core/caller";
export async function getAllCenters() {
return await callAPI.get(`/center/all`).then((res) => res.data);
}
export async function selectCenter(centerId: string) {
return await callAPI
.post("/center/select", { centerId })
.then((res) => res.data);
}