11 lines
299 B
TypeScript
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);
|
|
}
|