diff --git a/src/pages/schedule/service/ScheduleService.ts b/src/pages/schedule/service/ScheduleService.ts index 09b7161..fc3fea5 100644 --- a/src/pages/schedule/service/ScheduleService.ts +++ b/src/pages/schedule/service/ScheduleService.ts @@ -8,19 +8,22 @@ import type { export const getSchedules = async ( params?: Record ): Promise => { - const { data } = await axios.get("/schedules", { - params, - }); + const { data } = await axios.get( + "/admin/schedules", + { + params, + } + ); return data; }; export const deleteSchedule = async (id: string) => { - const { data } = await axios.delete(`/schedules/${id}`); + const { data } = await axios.delete(`/admin/schedules/${id}`); return data; }; export const createSchedule = async (params: CreateScheduleType) => { - const { data } = await axios.post("/schedules", params); + const { data } = await axios.post("/admin/schedules", params); return data; }; @@ -28,13 +31,15 @@ export const updateSchedule = async ( id: string, params: CreateScheduleType ) => { - const { data } = await axios.patch(`/schedules/${id}`, params); + const { data } = await axios.patch(`/admin/schedules/${id}`, params); return data; }; export const getSchedule = async ( id: string ): Promise => { - const { data } = await axios.get(`/schedules/${id}`); + const { data } = await axios.get( + `/admin/schedules/${id}` + ); return data; };