From 680f5a901019b0a0bd1aff33645f94dc0435e881 Mon Sep 17 00:00:00 2001 From: pricelees Date: Tue, 9 Sep 2025 09:00:54 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=ED=94=84=EB=A1=A0=ED=8A=B8?= =?UTF-8?q?=EC=97=94=EB=93=9C=20=EC=98=88=EC=95=BD=20API=20=EC=97=94?= =?UTF-8?q?=EB=93=9C=ED=8F=AC=EC=9D=B8=ED=8A=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/reservation/reservationAPIV2.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/api/reservation/reservationAPIV2.ts b/frontend/src/api/reservation/reservationAPIV2.ts index 65f9d54b..01992108 100644 --- a/frontend/src/api/reservation/reservationAPIV2.ts +++ b/frontend/src/api/reservation/reservationAPIV2.ts @@ -6,18 +6,18 @@ export const createPendingReservation = async (request: PendingReservationCreate }; export const confirmReservation = async (reservationId: string): Promise => { - await apiClient.patch(`/reservations/${reservationId}/confirm`, {}); + await apiClient.post(`/reservations/${reservationId}/confirm`, {}); }; export const cancelReservation = async (id: string, cancelReason: string): Promise => { - return await apiClient.post(`/v3/reservations/${id}/cancel`, { cancelReason }, true); + return await apiClient.post(`/reservations/${id}/cancel`, { cancelReason }, true); }; export const fetchSummaryByMember = async (): Promise => { - return await apiClient.get('/v2/reservations/summary'); + return await apiClient.get('/reservations/summary'); } export const fetchDetailById = async (reservationId: string): Promise => { - return await apiClient.get(`/v2/reservations/${reservationId}/detail`); + return await apiClient.get(`/reservations/${reservationId}/detail`); }