|
|
@@ -32,10 +32,10 @@ function getStudentCourses(studentId) {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-function getCourse(courseId) {
|
|
|
- return axios.get(`${prefix}`, {
|
|
|
+function getCourseById(id) {
|
|
|
+ return axios.get(`${prefix}/getCourseById`, {
|
|
|
params: {
|
|
|
- courseId
|
|
|
+ id
|
|
|
},
|
|
|
});
|
|
|
}
|
|
|
@@ -75,7 +75,7 @@ const courseAPIs = {
|
|
|
getAllCourses,
|
|
|
getTeacherCourses,
|
|
|
getStudentCourses,
|
|
|
- getCourse,
|
|
|
+ getCourseById,
|
|
|
deleteCourse,
|
|
|
updateCourse,
|
|
|
getExampleCourses,
|