diff --git a/client/src/modules/Course/Components/Course.tsx b/client/src/modules/Course/Components/Course.tsx index 6b5f3530..73e58ab6 100644 --- a/client/src/modules/Course/Components/Course.tsx +++ b/client/src/modules/Course/Components/Course.tsx @@ -118,7 +118,7 @@ export const Course = () => { */ async function reportReview(reviewId: string) { try { - const response = await axios.post('/api/reportReview', { id: reviewId }) + const response = await axios.post('/api/reviews/report', { id: reviewId }) if (response.status === 200) { setCourseReviews( courseReviews?.filter((element) => element._id !== reviewId) diff --git a/client/src/modules/Course/Components/ReviewModal.tsx b/client/src/modules/Course/Components/ReviewModal.tsx index baccbe51..5cc8264c 100644 --- a/client/src/modules/Course/Components/ReviewModal.tsx +++ b/client/src/modules/Course/Components/ReviewModal.tsx @@ -82,7 +82,7 @@ const ReviewModal = ({ * the anonymous modal */ async function getNoReviews() { - const response = await axios.post('/api/countReviewsByStudentId', { + const response = await axios.post('/api/profile/count-reviews', { netId, }) const res = response.data diff --git a/client/src/modules/Profile/Component/Profile.tsx b/client/src/modules/Profile/Component/Profile.tsx index 86e4d27c..f67f5087 100644 --- a/client/src/modules/Profile/Component/Profile.tsx +++ b/client/src/modules/Profile/Component/Profile.tsx @@ -127,7 +127,7 @@ const Profile = () => { */ async function submitReview(review: NewReview, courseId: string) { try { - const response = await axios.post('/api/insertReview', { + const response = await axios.post('/api/reviews/insert', { token: token, review: review, courseId: courseId,