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, };