From 7d35d3ed29298432d4d724d246ac599cfea26305 Mon Sep 17 00:00:00 2001 From: hoyyChoi Date: Sat, 2 Sep 2023 02:52:20 +0900 Subject: [PATCH] feat : postReview --- source/api/remote.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/api/remote.js b/source/api/remote.js index a605129..b9eeb2a 100644 --- a/source/api/remote.js +++ b/source/api/remote.js @@ -45,6 +45,9 @@ const postRegister = (userId, eMail) => email: eMail, }); +const postReview = (userId, placeId, content, star) => + UpdateAxios.post(`review/user/${userId}/place/${placeId}`, {content, star}); + export { getAllPlaceCheck, getSinglePlaceCheck, @@ -52,4 +55,5 @@ export { getLoginCheck, postRegister, getReviewCheck, + postReview, };