feat(backend): init course metadata service

This commit is contained in:
swve 2022-11-14 22:52:18 +01:00
parent fba161b55d
commit a8bad0427b
3 changed files with 84 additions and 2 deletions

View file

@ -17,6 +17,8 @@ const CourseIdPage = () => {
const course = await getCourse("course_" + courseid);
setCourseInfo(course);
console.log("courseinfo" , courseInfo);
setIsLoading(false);
@ -37,6 +39,7 @@ const CourseIdPage = () => {
) : (
<div>
<br></br>
<p>Course</p>
<h1>{courseInfo.name}</h1>
<CourseWrapper>
<img src={`${getBackendUrl()}content/uploads/img/${courseInfo.thumbnail}`} alt="" />